Skip to content
Snippets Groups Projects
Verified Commit cadade65 authored by Chris Croome's avatar Chris Croome
Browse files

test fix for file config sections var

parent 58e3faa4
No related branches found
No related tags found
No related merge requests found
Pipeline #33283 failed
......@@ -93,23 +93,30 @@
map('ansible.builtin.type_debug') |
unique)[0] == "dict"
-%}true{%- else -%}false{%- endif -%}
when: php_conf_file_proposed_vars | length > 0
- name: Debug the proposed PHP configuration file sections variables
ansible.builtin.debug:
var: php_conf_file_proposed_sections
verbosity: "{% if ansible_check_mode | bool %}1{% else %}2{% endif %}"
when: php_conf_file_proposed_sections is defined
- name: Debug the proposed PHP configuration file sections
ansible.builtin.debug:
var: php_conf_file_proposed_vars.keys()
verbosity: "{% if ansible_check_mode | bool %}1{% else %}2{% endif %}"
when: php_conf_file_proposed_sections | bool
when:
- php_conf_file_proposed_sections is defined
- php_conf_file_proposed_sections | bool
- name: When the existing files has sections and proposed config also has sections
ansible.builtin.assert:
that:
- php_conf_file_existing_sections == php_conf_file_proposed_sections
quiet: "{% if ansible_verbosity == 0 %}true{% else %}false{% endif %}"
when:
- php_conf_file_existing_sections is defined
- php_conf_file_proposed_sections is defined
- name: Set facts for the PHP configuration file
ansible.builtin.set_fact:
......
......@@ -54,17 +54,21 @@
map('ansible.builtin.type_debug') |
unique)[0] == "dict"
-%}true{%- else -%}false{%- endif -%}
when: php_conf_file_proposed_vars | length > 0
- name: Debug the proposed PHP configuration file sections variables
ansible.builtin.debug:
var: php_conf_file_proposed_sections
verbosity: "{% if ansible_check_mode | bool %}1{% else %}2{% endif %}"
when: php_conf_file_proposed_sections is defined
- name: Debug the proposed PHP configuration file sections
ansible.builtin.debug:
var: php_conf_file_proposed_vars.keys()
verbosity: "{% if ansible_check_mode | bool %}1{% else %}2{% endif %}"
when: php_conf_file_proposed_sections | bool
when:
- php_conf_file_proposed_sections is defined
- php_conf_file_proposed_sections | bool
- name: File backup present
ansible.builtin.copy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment