fix permissions for ssl

This commit is contained in:
Robert Kaussow 2018-11-07 23:25:17 +01:00
parent 160aba61c1
commit 33194a5207
1 changed files with 1 additions and 4 deletions

View File

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