db: refs #8140 - clean festival
This commit is contained in:
parent
1f745a1c8c
commit
7a925b67c4
|
@ -44,3 +44,8 @@ downloads:
|
||||||
- url: https://repo.percona.com/apt/percona-release_latest.generic_all.deb
|
- url: https://repo.percona.com/apt/percona-release_latest.generic_all.deb
|
||||||
dest: /tmp/percona-release_latest.generic_all.deb
|
dest: /tmp/percona-release_latest.generic_all.deb
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
clean_config_and_scripts:
|
||||||
|
- { path: /root/scripts/events-promote.sh }
|
||||||
|
- { path: /root/scripts/events-demote.sh }
|
||||||
|
- { path: /root/scripts/promote-master.sh }
|
||||||
|
- { path: /root/scripts/promote-slave.sh }
|
|
@ -122,3 +122,9 @@
|
||||||
- name: Mount all filesystems from /etc/fstab
|
- name: Mount all filesystems from /etc/fstab
|
||||||
command: mount -a
|
command: mount -a
|
||||||
when: fstab.changed
|
when: fstab.changed
|
||||||
|
|
||||||
|
- name: Clean old configs or scripts
|
||||||
|
file:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
state: absent
|
||||||
|
loop: "{{ clean_config_and_scripts }}"
|
||||||
|
|
Loading…
Reference in New Issue