etc-git: chmod 600 for local periodic files (daily, weekly, monthly) - forgotten ones

This commit is contained in:
Jérémy Dubois 2022-07-12 10:30:23 +02:00
parent 0e9df878e1
commit 91922175cd
3 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@
path: /etc/daily.local
line: '#sh /usr/share/scripts/zzz_evobackup'
owner: root
mode: "0644"
mode: "0600"
create: true
when:
- not (daily_local_content.stdout
@ -38,7 +38,7 @@
line: 'next_part "EvoBackup output:"'
insertbefore: 'sh /usr/share/scripts/zzz_evobackup'
owner: root
mode: "0644"
mode: "0600"
create: true
tags:
- evobackup

View File

@ -63,7 +63,7 @@
path: /etc/daily.local
line: "{{ item }}"
owner: root
mode: "0644"
mode: "0600"
state: absent
with_items:
- 'next_part "Checking /etc git status:"'

View File

@ -43,7 +43,7 @@
insertbefore: BOF
line: 'if [ $(date +%d) -eq "01" ]; then cron_arg=""; else cron_arg="--cron"; fi'
owner: root
mode: "0644"
mode: "0600"
create: true
tags:
- evocheck
@ -54,7 +54,7 @@
insertafter: 'if [ $(date +%d) -eq "01" ]; then cron_arg=""; else cron_arg="--cron"; fi'
line: 'sh /usr/share/scripts/evocheck.sh --verbose $cron_arg'
owner: root
mode: "0644"
mode: "0600"
create: true
tags:
- evocheck
@ -65,7 +65,7 @@
line: 'next_part "Evocheck output:"'
insertbefore: 'if [ $(date +%d) -eq "01" ]; then cron_arg=""; else cron_arg="--cron"; fi'
owner: root
mode: "0644"
mode: "0600"
create: true
tags:
- evocheck