diff --git a/tasks/check_init.yml b/tasks/check_init.yml index 5d67b977396876186c95cd25426dc26fbf99de86..6bd3617f90daa8a7890a3a7423a4ec66c5ca4db2 100644 --- a/tasks/check_init.yml +++ b/tasks/check_init.yml @@ -26,7 +26,7 @@ - name: When the exit code is 47 assume is is because this is a chroot ansible.builtin.set_fact: - php_init: "{{ php_ps.stdout }}" + php_init: chroot when: php_ps.rc == 47 - name: Debug the ini system diff --git a/tasks/main.yml b/tasks/main.yml index 0b39730f0936411341ececfa3ce5543f6a5a7851..ffcc925449bc4f6f92903165bdab28018cafebdf 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,12 +14,12 @@ - name: Debug the hostvars variable names that start with php_ ansible.builtin.debug: var: phpvarnames - verbosity: 2 + verbosity: "{% if ansible_check_mode | bool %}3{% else %}4{% endif %}" - name: Debug the hostvars variable names that start with php_ ansible.builtin.debug: var: phphostvars - verbosity: 3 + verbosity: "{% if ansible_check_mode | bool %}3{% else %}4{% endif %}" - name: Check php_ variables using meta/argument_specs.yml ansible.builtin.validate_argument_spec: