forked from vivekyoganand/ansible-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1.33 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
language: python
python: "2.7"
before_install:
# Make sure everything's up to date.
- sudo apt-get update -qq
# Install virtualbox and vagrant
#- sudo apt-get install linux-headers-generic virtualbox-ose-dkms virtualbox dkms vagrant -y
# Set virtualbox nat network
#- VBoxManage natnetwork add --netname nat --network "192.168.33.0/24"
install:
# Install Ansible.
- pip install ansible
# Add ansible.cfg to pick up roles path.
#- "printf '[defaults]\nroles_path = ../' > ansible.cfg"
script:
# Testing Vagrent
#- vagrant init ubuntu/trusty64
#- vagrent up
#- ansible-playbook -i inventory/template-env/hosts install-ntp.yml -e "inventory=test-box"
# We'll add some commands to test the role here.
- ansible-playbook -i inventory/template-env/hosts *.yml --syntax-check -e "inventory=localhost serial=1"
- ansible-playbook -i inventory/template-env/hosts AWS/*.yml --syntax-check -e "inventory=localhost serial=1"
- ansible-playbook -i inventory/template-env/hosts MySql/*.yml --syntax-check -e "inventory=localhost serial=1"
- ansible-playbook -i inventory/template-env/hosts ubuntu-desktop/*.yml --syntax-check -e "inventory=localhost serial=1"
- ansible-playbook -i inventory/template-env/hosts Hacking/*.yml --syntax-check -e "inventory=localhost serial=1"
after-script:
#- vagrant halt
#- vagrant destroy