2019-11-15 23:06:27 +01:00
|
|
|
- name: Stop MariaDB services
|
|
|
|
service:
|
|
|
|
name: mariadb@{{ item }}
|
|
|
|
state: stopped
|
|
|
|
loop:
|
|
|
|
- "{{ primary_db.name }}"
|
|
|
|
- "{{ replica_db.name }}"
|
|
|
|
listen: cleanup mariadb
|
|
|
|
|
2019-10-19 13:10:35 +02:00
|
|
|
- name: Remove MariaDB repo
|
|
|
|
yum_repository:
|
|
|
|
name: MariaDB
|
|
|
|
state: absent
|
|
|
|
listen: cleanup mariadb
|
|
|
|
|
|
|
|
- name: Remove MariaDB related packages
|
|
|
|
yum:
|
2019-11-15 23:06:27 +01:00
|
|
|
name: "{{ packages_to_cleanup | union(mariadb_packages) }}"
|
2019-10-19 13:10:35 +02:00
|
|
|
state: absent
|
|
|
|
listen: cleanup mariadb
|
|
|
|
|
|
|
|
- name: Remove related FS objects
|
|
|
|
file:
|
|
|
|
state: absent
|
|
|
|
path: "{{ item }}"
|
2019-10-23 15:50:31 +02:00
|
|
|
loop: "{{ fs_objects_to_clean_up }}"
|
2019-10-19 13:10:35 +02:00
|
|
|
listen: cleanup mariadb
|