debugging

This commit is contained in:
Lee Goolsbee
2024-03-27 09:18:51 -05:00
parent ed14988005
commit 704b4b2004
3 changed files with 36 additions and 0 deletions

View File

@@ -11,6 +11,18 @@
- "{{ atl_product_home }}/caches"
- "{{ atl_product_home }}/log"
- stat:
path: "{{ atl_product_home }}"
register: xxx
- name: DEBUG print atl_product_home stat info
debug:
msg: >-
{{ xxx.stat.uid ~ ':' ~ xxx.stat.gid ~ ' (' ~ xxx.stat.mode ~ ')'
if xxx.stat.exists
else
'?:? (?)' }}
- name: Enforce the permissions on the pem files
ansible.builtin.file:
path: "{{ atl_product_home }}/config/{{ item }}"

View File

@@ -54,6 +54,18 @@
vars:
fstype: "{{ (mesh_filesystem | length > 0) | ternary(mesh_filesystem[0], 'xfs') }}"
- stat:
path: "{{ atl_product_home }}"
register: xxx
- name: DEBUG print atl_product_home stat info
debug:
msg: >-
{{ xxx.stat.uid ~ ':' ~ xxx.stat.gid ~ ' (' ~ xxx.stat.mode ~ ')'
if xxx.stat.exists
else
'?:? (?)' }}
- name: Mount cache to atl_product_home/caches
ansible.posix.mount:
path: "{{ atl_product_home }}/caches"

View File

@@ -7,3 +7,15 @@
group: "{{ atl_product_user }}"
mode: "0754"
changed_when: false # For Molecule idempotence check
- stat:
path: "{{ atl_product_home }}"
register: xxx
- name: DEBUG print atl_product_home stat info
debug:
msg: >-
{{ xxx.stat.uid ~ ':' ~ xxx.stat.gid ~ ' (' ~ xxx.stat.mode ~ ')'
if xxx.stat.exists
else
'?:? (?)' }}