remove a few useless "backup: yes"
This commit is contained in:
parent
639a4baf75
commit
be68f9ac0a
|
@ -4,4 +4,3 @@
|
|||
src: motd.j2
|
||||
dest: /etc/motd
|
||||
force: yes
|
||||
backup: yes
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
dest: /etc/apt/sources.list
|
||||
mode: "0644"
|
||||
force: yes
|
||||
backup: yes
|
||||
notify: apt update
|
||||
tags:
|
||||
- apt-repositories
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
owner: root
|
||||
group: wheel
|
||||
mode: "0644"
|
||||
backup: yes
|
||||
tags:
|
||||
- log
|
||||
- newsyslog
|
||||
|
|
Loading…
Reference in New Issue