mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 11:50:18 +01:00
Updated travis test integration to use role directly.
This commit is contained in:
parent
22a7a9816c
commit
fbb164edca
2 changed files with 12 additions and 7 deletions
|
@ -1,12 +1,20 @@
|
|||
---
|
||||
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
|
||||
|
||||
# Add ansible.cfg to pick up roles path.
|
||||
- "printf '[defaults]\nroles_path = ../' > ansible.cfg"
|
||||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
---
|
||||
- hosts: all
|
||||
vars_files:
|
||||
- '../vars/main.yml'
|
||||
tasks:
|
||||
- include: '../tasks/main.yml'
|
||||
handlers:
|
||||
- include: '../handlers/main.yml'
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- ansible-role-mysql
|
||||
|
|
Loading…
Reference in a new issue