test: use yaml stdout callback

This provides a much more readable output for tasks. It'll be easier to
debug traces.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/3424/head
Sébastien Han 2018-12-14 11:14:30 +01:00 committed by Guillaume Abrioux
parent d9e7835086
commit 5419497726
2 changed files with 7 additions and 6 deletions

View File

@ -17,6 +17,7 @@ fact_caching_connection = $HOME/ansible/facts
fact_caching_timeout = 600 fact_caching_timeout = 600
nocows = 1 nocows = 1
callback_whitelist = profile_tasks callback_whitelist = profile_tasks
stdout_callback = yaml
# Disable them in the context of https://review.openstack.org/#/c/469644 # Disable them in the context of https://review.openstack.org/#/c/469644
retry_files_enabled = False retry_files_enabled = False

View File

@ -19,8 +19,8 @@ setenv=
ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions
ANSIBLE_CALLBACK_PLUGINS = {toxinidir}/plugins/callback ANSIBLE_CALLBACK_PLUGINS = {toxinidir}/plugins/callback
ANSIBLE_CALLBACK_WHITELIST = profile_tasks ANSIBLE_CALLBACK_WHITELIST = profile_tasks
# only available for ansible >= 2.2 # only available for ansible >= 2.5
ANSIBLE_STDOUT_CALLBACK = debug ANSIBLE_STDOUT_CALLBACK = yaml
deps= -r{toxinidir}/tests/requirements.txt deps= -r{toxinidir}/tests/requirements.txt
changedir={toxinidir}/tests/functional/centos/7/infra_lv_create changedir={toxinidir}/tests/functional/centos/7/infra_lv_create
commands= commands=
@ -203,8 +203,8 @@ setenv=
ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions
ANSIBLE_CALLBACK_PLUGINS = {toxinidir}/plugins/callback ANSIBLE_CALLBACK_PLUGINS = {toxinidir}/plugins/callback
ANSIBLE_CALLBACK_WHITELIST = profile_tasks ANSIBLE_CALLBACK_WHITELIST = profile_tasks
# only available for ansible >= 2.2 # only available for ansible >= 2.5
ANSIBLE_STDOUT_CALLBACK = debug ANSIBLE_STDOUT_CALLBACK = yaml
ansible2.2: DELEGATE_FACTS_HOST = False ansible2.2: DELEGATE_FACTS_HOST = False
docker_cluster: PLAYBOOK = site-docker.yml.sample docker_cluster: PLAYBOOK = site-docker.yml.sample
docker_cluster_collocation: PLAYBOOK = site-docker.yml.sample docker_cluster_collocation: PLAYBOOK = site-docker.yml.sample