blob: 3bb125d4b98045a72df7b1e0aab3e19013215e96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
---
- name: prepare package provider
when: mysql_pkg_provider != 'distro'
include_role:
name: "apt-repo/{{ mysql_pkg_provider }}"
- name: install mysql packages
apt:
name:
- "{{ mysql_pkg_name }}"
- "{{ python_basename }}-pymysql"
state: present
force: yes
- name: delete anonymous MySQL server user
mysql_user:
login_user: root
login_unix_socket: /var/run/mysqld/mysqld.sock
user: ""
state: absent
no_log: true
- name: remove the MySQL test database
mysql_db:
login_user: root
login_unix_socket: /var/run/mysqld/mysqld.sock
db: test
state: absent
|