fix dict handling

This commit is contained in:
Robert Kaussow 2018-11-05 20:28:54 +01:00
parent f20983659a
commit da82193ac9

View File

@ -17,5 +17,5 @@
- name: Add users to password file - name: Add users to password file
shell: "mosquitto_passwd -b {{ mosquitto_password_auth_file }} {{ item.name }} {{ item.value.password }}" shell: "mosquitto_passwd -b {{ mosquitto_password_auth_file }} {{ item.name }} {{ item.value.password }}"
with_dict: "{{ mosquitto_login_users | default(omit) }}" with_dict: "{{ mosquitto_password_auth_users | default('{}') }}"
notify: __mosquitto_restart notify: __mosquitto_restart