diff --git a/roles/bitbucket_mesh_config/tasks/mesh_setup.yml b/roles/bitbucket_mesh_config/tasks/mesh_setup.yml index 2df4a13..3b99922 100644 --- a/roles/bitbucket_mesh_config/tasks/mesh_setup.yml +++ b/roles/bitbucket_mesh_config/tasks/mesh_setup.yml @@ -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 }}" diff --git a/roles/bitbucket_mesh_config/tasks/meshvols_setup.yml b/roles/bitbucket_mesh_config/tasks/meshvols_setup.yml index fcda07f..2b1ce3f 100644 --- a/roles/bitbucket_mesh_config/tasks/meshvols_setup.yml +++ b/roles/bitbucket_mesh_config/tasks/meshvols_setup.yml @@ -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" diff --git a/roles/product_install/tasks/mesh_extra_tasks.yml b/roles/product_install/tasks/mesh_extra_tasks.yml index 933c495..91318f2 100644 --- a/roles/product_install/tasks/mesh_extra_tasks.yml +++ b/roles/product_install/tasks/mesh_extra_tasks.yml @@ -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 + '?:? (?)' }}