fix permissions for ssl

This commit is contained in:
Robert Kaussow 2018-11-07 23:25:17 +01:00
parent 160aba61c1
commit 33194a5207

View File

@ -10,10 +10,7 @@
with_items: with_items:
- "{{ mosquitto_tls_cert_path | dirname }}" - "{{ mosquitto_tls_cert_path | dirname }}"
- "{{ mosquitto_tls_key_path | dirname }}" - "{{ mosquitto_tls_key_path | dirname }}"
become: True
become_user: root
- block:
- name: Copy certs and private key (file) - name: Copy certs and private key (file)
copy: copy:
src: "{{ item.src }}" src: "{{ item.src }}"
@ -38,4 +35,4 @@
label: "{{ item.dest }}" label: "{{ item.dest }}"
when: mosquitto_tls_source_use_content when: mosquitto_tls_source_use_content
become: True become: True
become_user: "{{ mosquitto_user }}" become_user: root