Add Travis CI information
This commit is contained in:
parent
19f1c62605
commit
bce18b04bc
2 changed files with 22 additions and 0 deletions
12
.travis.yml
Normal file
12
.travis.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
language: python
|
||||||
|
python: "2.7"
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -qq python-apt python-pycurl
|
||||||
|
install:
|
||||||
|
- pip install ansible
|
||||||
|
script:
|
||||||
|
- echo localhost > inventory
|
||||||
|
- ansible-playbook --syntax-check -i inventory test.yml
|
||||||
|
- ansible-playbook -i inventory test.yml --connection=local --sudo -vvvv
|
||||||
10
test.yml
Normal file
10
test.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
remote_user: root
|
||||||
|
vars_files:
|
||||||
|
- 'vars/main.yml'
|
||||||
|
- 'defaults/main.yml'
|
||||||
|
tasks:
|
||||||
|
- include: 'tasks/main.yml'
|
||||||
|
handlers:
|
||||||
|
- include: 'handlers/main.yml'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue