Skip to content

Instantly share code, notes, and snippets.

@tasdikrahman
Created April 7, 2017 05:59
Show Gist options
  • Save tasdikrahman/4370bedb879794c77d135613ef808451 to your computer and use it in GitHub Desktop.
Save tasdikrahman/4370bedb879794c77d135613ef808451 to your computer and use it in GitHub Desktop.
{
"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