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 # TODO: ugly workaround, move this to a custom module
- block: - block:
- name: Add users to password file - 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: "{{ mosquitto_password_auth_users }}"
loop_control: loop_control:
label: "{{ item.name }}" label: "{{ item.name }}"
@ -27,7 +27,7 @@
no_log: True no_log: True
- name: Remove unnecessary users from password file - 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: "{{ mosquitto_password_auth_users }}"
loop_control: loop_control:
label: "{{ item.name }}" label: "{{ item.name }}"