From b9a24ffefff0e2f7860cf7c360f891ccf48aa5cf Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Sun, 26 Mar 2023 10:07:29 +0100 Subject: [PATCH] Fix chroot detection --- tasks/check_init.yml | 2 +- tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/check_init.yml b/tasks/check_init.yml index 5d67b97..6bd3617 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 0b39730..ffcc925 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: -- GitLab