3902c6dd9d
* Fix setup_mariadb for CentOS 8 Switch to using systemd for multiple instances on CentOS 7 and 8
27 lines
597 B
YAML
27 lines
597 B
YAML
- 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
|