Created
April 7, 2017 05:59
-
-
Save tasdikrahman/4370bedb879794c77d135613ef808451 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"sudo": "required", | |
"dist": "trusty", | |
"language": "python", | |
"python": "2.7", | |
"env": "ANSIBLE_VERSION=latest", | |
"before_install": [ | |
"sudo apt-get update -qq" | |
], | |
"install": [ | |
"if [ \"$ANSIBLE_VERSION\" = \"latest\" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi", | |
"if [ \"$ANSIBLE_VERSION\" = \"latest\" ]; then pip install ansible-lint; fi" | |
], | |
"script": [ | |
"ansible-playbook -i tests/inventory tests/test.yml --syntax-check", | |
"ansible-playbook -i tests/inventory tests/test.yml -vvvv --skip-tags update,copy_host_ssh_id", | |
"id -u tasdik | grep -q \"no\" && (echo \"user not found\" && exit 1) || (echo \"user found\" && exit 0)" | |
], | |
"group": "stable", | |
"os": "linux" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment