fix wrong variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-08-27 09:13:46 +02:00
parent a17324b935
commit 8d490ce6ee

View File

@ -22,7 +22,7 @@
loop: "{{ mosquitto_password_auth_users }}" loop: "{{ mosquitto_password_auth_users }}"
loop_control: loop_control:
label: "{{ item.name }}" label: "{{ item.name }}"
when: item.value.state == "present" when: item.state == "present"
changed_when: False changed_when: False
no_log: True no_log: True
@ -31,7 +31,7 @@
loop: "{{ mosquitto_password_auth_users }}" loop: "{{ mosquitto_password_auth_users }}"
loop_control: loop_control:
label: "{{ item.name }}" label: "{{ item.name }}"
when: item.value.state == "absent" when: item.state == "absent"
changed_when: False changed_when: False
no_log: True no_log: True