ansible/test/integration/targets/setup_mariadb/handlers/main.yml
Sam Doran 3902c6dd9d
Fix MariaDB integration tests for CentOS 8 (#64859)
* Fix setup_mariadb for CentOS 8
Switch to using systemd for multiple instances on CentOS 7 and 8
2019-11-15 17:06:27 -05:00

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