From 90de4fb847c049dcc7b8f178774f7057096888e1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 4 Aug 2019 12:28:42 +0300 Subject: [PATCH] Fix: Set `directory_mode` for recursive copying --- playbooks/debian/roles/apache/tasks/main.yml | 1 + playbooks/debian/roles/firewall/tasks/main.yml | 1 + playbooks/debian/roles/logcheck/tasks/main.yml | 1 + playbooks/debian/roles/remove-systemd/tasks/main.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/playbooks/debian/roles/apache/tasks/main.yml b/playbooks/debian/roles/apache/tasks/main.yml index ebe880c..ac576c0 100644 --- a/playbooks/debian/roles/apache/tasks/main.yml +++ b/playbooks/debian/roles/apache/tasks/main.yml @@ -42,6 +42,7 @@ dest: /usr/local/apache2 owner: root group: www-data + directory_mode: '0755' mode: '0644' - name: Enable config diff --git a/playbooks/debian/roles/firewall/tasks/main.yml b/playbooks/debian/roles/firewall/tasks/main.yml index 0015e81..ed406ee 100644 --- a/playbooks/debian/roles/firewall/tasks/main.yml +++ b/playbooks/debian/roles/firewall/tasks/main.yml @@ -14,6 +14,7 @@ dest: / owner: root group: root + directory_mode: '0750' mode: '0750' force: no register: etc diff --git a/playbooks/debian/roles/logcheck/tasks/main.yml b/playbooks/debian/roles/logcheck/tasks/main.yml index e72afeb..81a2b55 100644 --- a/playbooks/debian/roles/logcheck/tasks/main.yml +++ b/playbooks/debian/roles/logcheck/tasks/main.yml @@ -24,5 +24,6 @@ dest: "/etc/logcheck/ignore.d.{{ item }}" owner: root group: logcheck + directory_mode: '0750' mode: 0640 loop: ['server', 'workstation'] diff --git a/playbooks/debian/roles/remove-systemd/tasks/main.yml b/playbooks/debian/roles/remove-systemd/tasks/main.yml index 1739c6c..ae26cd5 100644 --- a/playbooks/debian/roles/remove-systemd/tasks/main.yml +++ b/playbooks/debian/roles/remove-systemd/tasks/main.yml @@ -5,6 +5,7 @@ dest: / owner: root group: root + directory_mode: '0750' mode: '0640' force: no -- 2.39.5