blob: 9d84dddf6c580a8f21ff102b8fcf38c633c30a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
- name: Stop MariaDB services
service:
name: mariadb@{{ item }}
state: stopped
loop:
- "{{ primary_db.name }}"
- "{{ replica_db.name }}"
listen: cleanup mariadb
- name: Remove MariaDB repo
yum_repository:
name: MariaDB
state: absent
listen: cleanup mariadb
- name: Remove MariaDB related packages
yum:
name: "{{ packages_to_cleanup | union(mariadb_packages) }}"
state: absent
listen: cleanup mariadb
- name: Remove related FS objects
file:
state: absent
path: "{{ item }}"
loop: "{{ fs_objects_to_clean_up }}"
listen: cleanup mariadb
|