remove a few useless "backup: yes"

This commit is contained in:
Jérémy Lecour 2017-07-17 14:46:01 +02:00 committed by Jérémy Lecour
parent 639a4baf75
commit be68f9ac0a
7 changed files with 4 additions and 16 deletions

View File

@ -4,4 +4,3 @@
src: motd.j2
dest: /etc/motd
force: yes
backup: yes

View File

@ -12,7 +12,6 @@
src: '{{ ansible_distribution_release }}_backports.list.j2'
dest: /etc/apt/sources.list.d/backports.list
force: yes
backup: yes
mode: "0640"
notify: apt update
tags:
@ -23,7 +22,6 @@
src: '{{ ansible_distribution_release }}_backports_preferences'
dest: /etc/apt/preferences.d/0-backports-defaults
force: yes
backup: yes
mode: "0640"
notify: apt update
tags:

View File

@ -6,7 +6,6 @@
dest: /etc/apt/sources.list
mode: "0644"
force: yes
backup: yes
notify: apt update
tags:
- apt-repositories

View File

@ -18,7 +18,6 @@
src: evolix_public.list.j2
dest: /etc/apt/sources.list.d/evolix_public.list
force: yes
backup: yes
mode: "0640"
notify: apt update
tags:

View File

@ -14,7 +14,6 @@
dest: /etc/fstab
regexp: '([^#]\s+/home\s+\S+\s+)([a-z,]+)(\s+)'
replace: '\1{{ evolinux_fstab_home_options | mandatory }}\3'
backup: yes
notify: remount /home
when:
- "' /home ' in fstab_content.stdout"
@ -25,7 +24,6 @@
dest: /etc/fstab
regexp: '([^#]\s+/tmp\s+\S+\s+)([a-z,]+)(\s+)'
replace: '\1{{ evolinux_fstab_tmp_options | mandatory }}\3'
backup: yes
when:
- "' /tmp ' in fstab_content.stdout"
- evolinux_fstab_tmp
@ -35,7 +33,6 @@
dest: /etc/fstab
regexp: '([^#]\s+/usr\s+\S+\s+)([a-z,]+)(\s+)'
replace: '\1{{ evolinux_fstab_usr_options | mandatory }}\3'
backup: yes
when:
- "' /usr ' in fstab_content.stdout"
- evolinux_fstab_usr
@ -45,7 +42,6 @@
dest: /etc/fstab
regexp: '([^#]\s+/var\s+\S+\s+)([a-z,]+)(\s+)'
replace: '\1{{ evolinux_fstab_var_options | mandatory }}\3'
backup: yes
notify: remount /var
when:
- "' /var ' in fstab_content.stdout"

View File

@ -104,12 +104,11 @@
dest: /etc/crontab
regexp: "{{ item.regexp }}"
replace: "{{ item.replace }}"
backup: "{{ item.backup }}"
with_items:
- {regexp: '^17((\s*\*){4})', replace: '{{ 59|random(start=1) }}\1', backup: "yes"}
- {regexp: '^25\s*6((\s*\*){3})', replace: '{{ 59|random(start=1) }} {{ [0,1,3,4,5,6,7]|random }}\1', backup: "no"}
- {regexp: '^47\s*6((\s*\*){2}\s*7)', replace: '{{ 59|random(start=1) }} {{ [0,1,3,4,5,6,7]|random }}\1', backup: "no"}
- {regexp: '^52\s*6(\s*1(\s*\*){2})', replace: '{{ 59|random(start=1) }} {{ [0,1,3,4,5,6,7]|random }}\1', backup: "no"}
- { regexp: '^17((\s*\*){4})', replace: '{{ 59|random(start=1) }}\1' }
- { regexp: '^25\s*6((\s*\*){3})', replace: '{{ 59|random(start=1) }} {{ [0,1,3,4,5,6,7]|random }}\1' }
- { regexp: '^47\s*6((\s*\*){2}\s*7)', replace: '{{ 59|random(start=1) }} {{ [0,1,3,4,5,6,7]|random }}\1' }
- { regexp: '^52\s*6(\s*1(\s*\*){2})', replace: '{{ 59|random(start=1) }} {{ [0,1,3,4,5,6,7]|random }}\1' }
when: evolinux_system_cron_random
# NTP listen retriction
@ -127,7 +126,6 @@
dest: /etc/ntp.conf
regexp: "^server .*$"
replace: "server {{ evolinux_system_ntpserver }}"
backup: yes
notify: restart ntp
when: evolinux_system_set_ntpserver

View File

@ -7,7 +7,6 @@
owner: root
group: wheel
mode: "0644"
backup: yes
tags:
- log
- newsyslog