2019-04-14 18:27:36 +00:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
|
|
|
become: true
|
|
|
|
|
|
|
|
roles:
|
2021-04-19 08:55:54 +00:00
|
|
|
- role: mariadb
|
2019-04-14 18:27:36 +00:00
|
|
|
|
|
|
|
post_tasks:
|
|
|
|
- name: Make sure we can connect to MySQL via Unix socket.
|
|
|
|
command: "mysql -u root -proot -e 'show databases;'"
|
|
|
|
changed_when: false
|
|
|
|
|
|
|
|
- name: Make sure we can connect to MySQL via TCP.
|
|
|
|
command: "mysql -u root -proot -h 127.0.0.1 -e 'show databases;'"
|
|
|
|
changed_when: false
|