From 33194a52073f470caf777b78a7d54c6c8f1da7aa Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 7 Nov 2018 23:25:17 +0100 Subject: [PATCH] fix permissions for ssl --- tasks/tls.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tasks/tls.yml b/tasks/tls.yml index a663441..821ccc2 100644 --- a/tasks/tls.yml +++ b/tasks/tls.yml @@ -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