mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
29
tests/integration/targets/setup_mysql8/handlers/main.yml
Normal file
29
tests/integration/targets/setup_mysql8/handlers/main.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
- name: stop mysql service
|
||||
service:
|
||||
name: mysqld
|
||||
state: stopped
|
||||
listen: cleanup mysql8
|
||||
|
||||
- name: remove repo
|
||||
# yum:
|
||||
# name: mysql80-community-release
|
||||
# state: absent
|
||||
# Work around for a bug in the dnf module. Use the module once that gets fixed.
|
||||
# https://github.com/ansible/ansible/issues/64294
|
||||
command: "{{ ansible_facts.pkg_mgr}} -y erase mysql80-community-release"
|
||||
args:
|
||||
warn: no
|
||||
listen: cleanup mysql8
|
||||
|
||||
- name: remove mysql packages
|
||||
yum:
|
||||
name: '{{ mysql_support_packages | union(mysql_server_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
|
Loading…
Add table
Add a link
Reference in a new issue