Another attempt to get ansible.cfg to work.

This commit is contained in:
Jeff Geerling 2014-04-23 12:42:10 -05:00
parent c97eec3adb
commit 0286ea1ca9

View File

@ -1,14 +1,23 @@
---
language: python
python: "2.7"
env:
- SITE=test.yml
before_install:
- sudo apt-get update -qq
install:
# Install Ansible.
- pip install ansible==1.5.0
- "printf '[defaults]\nroles_path = ../' > ansible.cfg"
# Add ansible.cfg to pick up roles path.
- "printf '[defaults]\\nroles_path = ../' > ansible.cfg"
# Install required dependencies.
- ansible-galaxy install geerlingguy.apache
script:
# Check the role/playbook's syntax.
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"