File tree Expand file tree Collapse file tree 4 files changed +35
-0
lines changed Expand file tree Collapse file tree 4 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ language : python
3
+ python : " 2.7"
4
+ env :
5
+ - SITE=test.yml
6
+ before_install :
7
+ - sudo apt-get update -qq
8
+ install :
9
+ - pip install ansible==1.5.0
10
+ script :
11
+ # Check the role/playbook's syntax.
12
+ - " ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
13
+
14
+ # Run the role/playbook with ansible-playbook.
15
+ - " ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
16
+
17
+ # Run the role/playbook again, checking to make sure it's idempotent.
18
+ - >
19
+ ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
20
+ | grep -q 'changed=0.*failed=0'
21
+ && (echo 'Idempotence test: pass' && exit 0)
22
+ || (echo 'Idempotence test: fail' && exit 1)
23
+
24
+ # TODO - check if mysql is running.
Original file line number Diff line number Diff line change 1
1
# Ansible Role: MySQL
2
2
3
+ [ ![ Build Status] ( https://travis-ci.org/geerlingguy/ansible-role-mysql.svg?branch=master )] ( https://travis-ci.org/geerlingguy/ansible-role-mysql )
4
+
3
5
Installs MySQL server on RHEL/CentOS or Debian/Ubuntu servers.
4
6
5
7
## Requirements
Original file line number Diff line number Diff line change
1
+ localhost
Original file line number Diff line number Diff line change
1
+ ---
2
+ - hosts : all
3
+ vars_files :
4
+ - ' ../vars/main.yml'
5
+ tasks :
6
+ - include : ' ../tasks/main.yml'
7
+ handlers :
8
+ - include : ' ../handlers/main.yml'
You can’t perform that action at this time.
0 commit comments