Add tox environement for ansible check syntax

This commits adds tox environments for checking the lampstack ansible
syntax.

Change-Id: Ia333d222ffb4b10caad1c55ea58b771865cd8de2
This commit is contained in:
Ghe Rivero 2016-10-22 10:32:09 +02:00
parent 2e0619c1fd
commit 597ec42e30
1 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@ setenv =
ANSIBLE_SSH_CONTROL_PATH = /tmp/%%h-%%r
ANSIBLE_INVENTORY = {env:LAMPSTACK_DIR}/hosts
ANSIBLE_CONFIG = {env:LAMPSTACK_DIR}/ansible.cfg
ANSIBLE_LOCAL_TEMP = {envtmpdir}
deps =
setuptools
-r{toxinidir}/ansible_requirements.txt
@ -27,3 +28,9 @@ setenv =
{[testenv]setenv}
ANSIBLE_CALLBACK_WHITELIST = profile_tasks
commands = ansible-playbook -vvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml
[testenv:lampstack-syntax]
setenv =
{[testenv]setenv}
commands = ansible-playbook -vvv --syntax-check {env:LAMPSTACK_DIR}/site.yml -e "action=apply {posargs}"
ansible-playbook -vvv --syntax-check {env:LAMPSTACK_DIR}/site.yml -e "action=destroy {posargs}"