Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Commit c54fbff

Browse files
committed
Fixes #16 - Add support for Travis CI linting
1 parent cb9455e commit c54fbff

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
language: python
3+
python: "2.7"
4+
5+
before_install:
6+
# Make sure everything's up to date.
7+
- sudo apt-get update -qq
8+
9+
install:
10+
# Install Ansible.
11+
- pip install ansible
12+
13+
# Add ansible.cfg to pick up roles path.
14+
- echo "[default]\nroles_path = ../" > ansible.cfg
15+
- cat ansible.cfg
16+
- ls
17+
- pwd
18+
19+
script:
20+
# Test syntax on playbook
21+
- ansible-playbook -i inventory test.yml --syntax-check

inventory

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost

test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- hosts: localhost
3+
remote_user: root
4+
roles:
5+
- ansible-role-vcenter

0 commit comments

Comments
 (0)