You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/setup_mariadb/handlers/main.yml

28 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