Commit b905a648 authored by Chris Croome's avatar Chris Croome

user loops fixed?

parent 28b0b1b6
Pipeline #8635 passed with stage
in 25 seconds
......@@ -4,23 +4,25 @@
- name: Debug user.value.users_state variable is not defined or equal to present
debug:
msg: "user.value.users_state for {{ user }} is persent or not defined"
msg: "user.value.users_state for {{ user.key }} is persent or not defined"
verbosity: 1
when: ( user.value.users_state is not defined ) or ( user.value.users_state == "present" )
loop: "{{ users | dict2items }}"
loop_control:
loop_var: user
loop_var: user.key
label: "{{ user.key }}"
tags:
- munin
- name: Debug user.value.users_state variable when defined or equal to absent
debug:
msg: "user.value.users_state for {{ user }} is defined and set to absent"
msg: "user.value.users_state for {{ user.key }} is defined and set to absent"
verbosity: 1
when: ( user.value.users_state is defined ) and ( user.value.users_state == "absent" )
loop: "{{ users | dict2items }}"
loop_control:
loop_var: user
label: "{{ user.key }}"
tags:
- munin
......@@ -32,6 +34,7 @@
loop: "{{ users | dict2items }}"
loop_control:
loop_var: user
label: "{{ user.key }}"
tags:
- munin
......@@ -45,6 +48,7 @@
loop: "{{ users | dict2items }}"
loop_control:
loop_var: user
label: "{{ user.key }}"
tags:
- munin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment