From 773f6487b2ad16eb5361da03197275c2eba9c544 Mon Sep 17 00:00:00 2001 From: adrian-dinu Date: Wed, 29 Jul 2020 23:51:30 +0300 Subject: [PATCH] fix mode of csfpre/csfpost csf changes this files to 0700 each time it restarts, so ansible always registers a change each time it runs, to fix this loop files should be 0700 in ansible as well. --- tasks/configure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 04257f9..241bf7e 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -94,7 +94,7 @@ copy: content: "{{ vars['csf_csfpre_sh'] }}" dest: '/etc/csf/csfpre.sh' - mode: 0755 + mode: 0700 when: csf_csfpre_sh is defined notify: - restart csf @@ -107,7 +107,7 @@ copy: content: "{{ vars['csf_csfpost_sh'] }}" dest: '/etc/csf/csfpost.sh' - mode: 0755 + mode: 0700 when: csf_csfpost_sh is defined notify: - restart csf