ansible/test/integration/targets/setup_mariadb/handlers/main.yml

28 lines
597 B
YAML
Raw Normal View History

- 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