-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Farrington
committed
Mar 23, 2015
1 parent
4a0e967
commit 6e46edf
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
--- | ||
language: python | ||
python: "2.7" | ||
env: | ||
- NODEJS_INSTALL_METHOD=binary | ||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq python-apt python-pycurl | ||
install: | ||
- pip install ansible==1.5.0 | ||
script: | ||
- echo localhost > inventory | ||
- ansible-playbook -i inventory test.yml --syntax-check | ||
- ansible-playbook -i inventory test.yml --connection=local --sudo | ||
- ansible-playbook -i inventory -e nodejs_install_method=binary test.yml --syntax-check | ||
- ansible-playbook -i inventory -e nodejs_install_method=binary test.yml --connection=local --sudo | ||
- > | ||
ansible-playbook -i inventory test.yml --connection=local --sudo | ||
ansible-playbook -i inventory -e nodejs_install_method=binary test.yml --connection=local --sudo | ||
| grep -q 'changed=0.*failed=0' | ||
&& (echo 'Idempotence test: pass' && exit 0) | ||
|| (echo 'Idempotence test: fail' && exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[anxs] | ||
anxs.local ansible_ssh_host=192.168.88.16 ansible_ssh_port=22 | ||
anxs.local ansible_ssh_host=192.168.88.17 ansible_ssh_port=22 |