Skip to content

Commit

Permalink
fix mode of csfpre/csfpost
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adrian-dinu authored Jul 29, 2020
1 parent b13cbce commit 773f648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 773f648

Please sign in to comment.