mirror of https://github.com/ansible/ansible.git
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.
26 lines
523 B
YAML
26 lines
523 B
YAML
5 years ago
|
- name: stop mysql service
|
||
|
service:
|
||
|
name: "{{ mysql_service }}"
|
||
|
state: stopped
|
||
|
listen: cleanup mysql
|
||
|
|
||
|
- name: remove mysql packages
|
||
|
action: '{{ ansible_pkg_mgr }}'
|
||
|
args:
|
||
|
name: "{{ item }}"
|
||
|
state: absent
|
||
|
loop: "{{ mysql_packages | union(mysql_cleanup_packages) }}"
|
||
|
listen: cleanup mysql
|
||
|
|
||
|
- name: remove mysql data
|
||
|
file:
|
||
|
path: "{{ item }}"
|
||
|
state: absent
|
||
|
loop: "{{ mysql_data_dirs }}"
|
||
|
listen: cleanup mysql
|
||
|
|
||
|
- name: remove pip packages
|
||
|
pip:
|
||
|
name: mysql-python
|
||
|
state: absent
|