You've already forked percona
23 lines
599 B
YAML
23 lines
599 B
YAML
---
|
|
- name: percona | configure Percona Server
|
|
template:
|
|
src: my.cnf.j2
|
|
dest: /etc/mysql/conf.d/01-ansible.cnf
|
|
mode: '0644'
|
|
notify: Restart Percona Server
|
|
|
|
- name: percona | ensure Percona Server is started and enabled
|
|
service:
|
|
name: mysql
|
|
state: started
|
|
enabled: yes
|
|
|
|
- name: percona | update MySQL root password
|
|
mysql_user:
|
|
name: root
|
|
host: localhost
|
|
password: "{{ percona_root_password }}"
|
|
login_unix_socket: /var/run/mysqld/mysqld.sock
|
|
priv: "*.*:ALL,GRANT"
|
|
ignore_errors: true # In case password is already set and socket auth is disabled
|