use command instead of shell module
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-10-18 10:06:29 +02:00
parent 2fe959c160
commit cc484aebf9

View File

@ -18,7 +18,7 @@
# TODO: ugly workaround, move this to a custom module
- block:
- name: Add users to password file
shell: "mosquitto_passwd -b {{ mosquitto_password_auth_file }} {{ item.name }} {{ item.password }}"
command: "mosquitto_passwd -b {{ mosquitto_password_auth_file }} {{ item.name }} {{ item.password }}"
loop: "{{ mosquitto_password_auth_users }}"
loop_control:
label: "{{ item.name }}"
@ -27,7 +27,7 @@
no_log: True
- name: Remove unnecessary users from password file
shell: "mosquitto_passwd -D {{ mosquitto_password_auth_file }} {{ item.name }}"
command: "mosquitto_passwd -D {{ mosquitto_password_auth_file }} {{ item.name }}"
loop: "{{ mosquitto_password_auth_users }}"
loop_control:
label: "{{ item.name }}"