mariadb/molecule/default/playbook.yml
2021-04-19 10:55:54 +02:00

17 lines
396 B
YAML

---
- name: Converge
hosts: all
become: true
roles:
- role: mariadb
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