ansible/test/integration/targets/setup_mysql8/handlers/main.yml
Sam Doran 3e4ae42256
Cleanup after MySQL integration tests (#63641)
Add handlers to setup_mysql_db and setup_mysql8 to remove installed packages.
2019-10-23 11:11:02 -04:00

24 lines
485 B
YAML

- name: stop mysql service
service:
name: mysqld
state: stopped
listen: cleanup mysql8
- name: remove repo
yum:
name: mysql80-community-release
state: absent
listen: cleanup mysql8
- name: remove mysql packages
yum:
name: '{{ mysql_packages | union(mysql_cleanup_packages) }}'
state: absent
listen: cleanup mysql8
- name: remove mysql data
file:
path: "{{ item }}"
state: absent
loop: "{{ mysql_data_dirs }}"
listen: cleanup mysql8