mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-19 18:04:20 +01:00
More Travis testing.
This commit is contained in:
@@ -29,6 +29,9 @@ script:
|
|||||||
&& (echo 'Idempotence test: pass' && exit 0)
|
&& (echo 'Idempotence test: pass' && exit 0)
|
||||||
|| (echo 'Idempotence test: fail' && exit 1)
|
|| (echo 'Idempotence test: fail' && exit 1)
|
||||||
|
|
||||||
|
- "sudo service mysql status"
|
||||||
|
- "sudo service mysql restart"
|
||||||
|
|
||||||
# Check to make sure we can connect to MySQL.
|
# Check to make sure we can connect to MySQL.
|
||||||
- >
|
- >
|
||||||
mysql -u root -proot -e 'show databases;'
|
mysql -u root -proot -e 'show databases;'
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: restart mysql
|
- name: restart mysql
|
||||||
service: >
|
debug: msg="Testing..."
|
||||||
name={{ mysql_daemon }}
|
# - name: restart mysql
|
||||||
state=restarted
|
# service: >
|
||||||
|
# name={{ mysql_daemon }}
|
||||||
|
# state=restarted
|
||||||
|
|||||||
Reference in New Issue
Block a user