remove a few useless "backup: yes"
This commit is contained in:
parent
639a4baf75
commit
be68f9ac0a
|
@ -4,4 +4,3 @@
|
||||||
src: motd.j2
|
src: motd.j2
|
||||||
dest: /etc/motd
|
dest: /etc/motd
|
||||||
force: yes
|
force: yes
|
||||||
backup: yes
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
src: '{{ ansible_distribution_release }}_backports.list.j2'
|
src: '{{ ansible_distribution_release }}_backports.list.j2'
|
||||||
dest: /etc/apt/sources.list.d/backports.list
|
dest: /etc/apt/sources.list.d/backports.list
|
||||||
force: yes
|
force: yes
|
||||||
backup: yes
|
|
||||||
mode: "0640"
|
mode: "0640"
|
||||||
notify: apt update
|
notify: apt update
|
||||||
tags:
|
tags:
|
||||||
|
@ -23,7 +22,6 @@
|
||||||
src: '{{ ansible_distribution_release }}_backports_preferences'
|
src: '{{ ansible_distribution_release }}_backports_preferences'
|
||||||
dest: /etc/apt/preferences.d/0-backports-defaults
|
dest: /etc/apt/preferences.d/0-backports-defaults
|
||||||
force: yes
|
force: yes
|
||||||
backup: yes
|
|
||||||
mode: "0640"
|
mode: "0640"
|
||||||
notify: apt update
|
notify: apt update
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
dest: /etc/apt/sources.list
|
dest: /etc/apt/sources.list
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: yes
|
force: yes
|
||||||
backup: yes
|
|
||||||
notify: apt update
|
notify: apt update
|
||||||
tags:
|
tags:
|
||||||
- apt-repositories
|
- apt-repositories
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
src: evolix_public.list.j2
|
src: evolix_public.list.j2
|
||||||
dest: /etc/apt/sources.list.d/evolix_public.list
|
dest: /etc/apt/sources.list.d/evolix_public.list
|
||||||
force: yes
|
force: yes
|
||||||
backup: yes
|
|
||||||
mode: "0640"
|
mode: "0640"
|
||||||
notify: apt update
|
notify: apt update
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
regexp: '([^#]\s+/home\s+\S+\s+)([a-z,]+)(\s+)'
|
regexp: '([^#]\s+/home\s+\S+\s+)([a-z,]+)(\s+)'
|
||||||
replace: '\1{{ evolinux_fstab_home_options | mandatory }}\3'
|
replace: '\1{{ evolinux_fstab_home_options | mandatory }}\3'
|
||||||
backup: yes
|
|
||||||
notify: remount /home
|
notify: remount /home
|
||||||
when:
|
when:
|
||||||
- "' /home ' in fstab_content.stdout"
|
- "' /home ' in fstab_content.stdout"
|
||||||
|
@ -25,7 +24,6 @@
|
||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
regexp: '([^#]\s+/tmp\s+\S+\s+)([a-z,]+)(\s+)'
|
regexp: '([^#]\s+/tmp\s+\S+\s+)([a-z,]+)(\s+)'
|
||||||
replace: '\1{{ evolinux_fstab_tmp_options | mandatory }}\3'
|
replace: '\1{{ evolinux_fstab_tmp_options | mandatory }}\3'
|
||||||
backup: yes
|
|
||||||
when:
|
when:
|
||||||
- "' /tmp ' in fstab_content.stdout"
|
- "' /tmp ' in fstab_content.stdout"
|
||||||
- evolinux_fstab_tmp
|
- evolinux_fstab_tmp
|
||||||
|
@ -35,7 +33,6 @@
|
||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
regexp: '([^#]\s+/usr\s+\S+\s+)([a-z,]+)(\s+)'
|
regexp: '([^#]\s+/usr\s+\S+\s+)([a-z,]+)(\s+)'
|
||||||
replace: '\1{{ evolinux_fstab_usr_options | mandatory }}\3'
|
replace: '\1{{ evolinux_fstab_usr_options | mandatory }}\3'
|
||||||
backup: yes
|
|
||||||
when:
|
when:
|
||||||
- "' /usr ' in fstab_content.stdout"
|
- "' /usr ' in fstab_content.stdout"
|
||||||
- evolinux_fstab_usr
|
- evolinux_fstab_usr
|
||||||
|
@ -45,7 +42,6 @@
|
||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
regexp: '([^#]\s+/var\s+\S+\s+)([a-z,]+)(\s+)'
|
regexp: '([^#]\s+/var\s+\S+\s+)([a-z,]+)(\s+)'
|
||||||
replace: '\1{{ evolinux_fstab_var_options | mandatory }}\3'
|
replace: '\1{{ evolinux_fstab_var_options | mandatory }}\3'
|
||||||
backup: yes
|
|
||||||
notify: remount /var
|
notify: remount /var
|
||||||
when:
|
when:
|
||||||
- "' /var ' in fstab_content.stdout"
|
- "' /var ' in fstab_content.stdout"
|
||||||
|
|
|
@ -104,12 +104,11 @@
|
||||||
dest: /etc/crontab
|
dest: /etc/crontab
|
||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ item.regexp }}"
|
||||||
replace: "{{ item.replace }}"
|
replace: "{{ item.replace }}"
|
||||||
backup: "{{ item.backup }}"
|
|
||||||
with_items:
|
with_items:
|
||||||
- {regexp: '^17((\s*\*){4})', replace: '{{ 59|random(start=1) }}\1', backup: "yes"}
|
- { 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', backup: "no"}
|
- { 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', backup: "no"}
|
- { 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', backup: "no"}
|
- { 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
|
when: evolinux_system_cron_random
|
||||||
|
|
||||||
# NTP listen retriction
|
# NTP listen retriction
|
||||||
|
@ -127,7 +126,6 @@
|
||||||
dest: /etc/ntp.conf
|
dest: /etc/ntp.conf
|
||||||
regexp: "^server .*$"
|
regexp: "^server .*$"
|
||||||
replace: "server {{ evolinux_system_ntpserver }}"
|
replace: "server {{ evolinux_system_ntpserver }}"
|
||||||
backup: yes
|
|
||||||
notify: restart ntp
|
notify: restart ntp
|
||||||
when: evolinux_system_set_ntpserver
|
when: evolinux_system_set_ntpserver
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: wheel
|
group: wheel
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
backup: yes
|
|
||||||
tags:
|
tags:
|
||||||
- log
|
- log
|
||||||
- newsyslog
|
- newsyslog
|
||||||
|
|
Loading…
Reference in a new issue