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

debug test

parent 3ecedfb2
No related branches found
No related tags found
No related merge requests found
Pipeline #9805 failed
......@@ -41,7 +41,7 @@
- apache_sites_enabled | unique | count == apache_sites_enabled | count
- apache_sites_disabled | unique | count == apache_sites_disabled | count
- name: apache_mods_enabled array checks
- name: apache_mods_enabled and apache_mods_disabled array checks
block:
- name: Debug mods enabled
......@@ -55,17 +55,12 @@
- name: Check that no mods are enabled and disabled
assert:
that: mod not in apache_mods_disabled"
that: "{{ mod }} not in apache_mods_disabled"
loop: "{{ apache_mods_enabled }}"
loop_control:
loop_var: mod
label: "{{ mod }}"
when: ( apache_mods_enabled is defined ) and ( apache_mods_enabled[0] is defined )
- name: apache_mods_disabled array checks
block:
- name: Debug mods disabled
debug:
var: mod
......@@ -83,7 +78,9 @@
loop_var: mod
label: "{{ mod }}"
when: ( apache_mods_disabled is defined ) and ( apache_mods_disabled[0] is defined )
when:
- ( apache_mods_disabled is defined ) and ( apache_mods_disabled[0] is defined )
- ( apache_mods_enabled is defined ) and ( apache_mods_enabled[0] is defined )
- name: Check that no conf are enabled and disabled
assert:
......@@ -92,7 +89,7 @@
loop_control:
loop_var: conf
label: "{{ conf }}"
when: apache_conf_disabled[0] is defined
when: apache_conf_abled[0] is defined
- name: Check that no conf are disabled and enabled
assert:
......
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