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

test

parent 21d803c4
No related branches found
No related tags found
No related merge requests found
Pipeline #9806 failed
......@@ -46,12 +46,12 @@
- name: Debug mods enabled
debug:
var: mod
var: apache_mods_enabled
verbosity: 2
loop: "{{ apache_mods_enabled }}"
loop_control:
loop_var: mod
label: "{{ mod }}"
#loop: "{{ apache_mods_enabled }}"
#loop_control:
# loop_var: mod
# label: "{{ mod }}"
- name: Check that no mods are enabled and disabled
assert:
......@@ -72,15 +72,15 @@
- name: Check that no mods are disabled and enabled
assert:
that: mod not in apache_mods_enabled
that: "{{ mod }} not in apache_mods_enabled"
loop: "{{ apache_mods_disabled }}"
loop_control:
loop_var: mod
label: "{{ mod }}"
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 )
- ( apache_mods_disabled is defined ) and ( apache_mods_disabled[0] is defined )
- name: Check that no conf are enabled and disabled
assert:
......@@ -98,7 +98,9 @@
loop_control:
loop_var: conf
label: "{{ conf }}"
when: apache_conf_disabled[0] is defined
when:
- ( apache_conf_disabled is defined ) and ( apache_conf_disabled[0] is defined )
- name: Check that no sites are enabled and disabled
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