mirror of https://github.com/ceph/ceph-ansible.git
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
parent
d9e7835086
commit
5419497726
|
@ -9,7 +9,7 @@ roles_path = ./roles
|
||||||
# Be sure the user running Ansible has permissions on the logfile
|
# Be sure the user running Ansible has permissions on the logfile
|
||||||
log_path = /var/log/ansible.log
|
log_path = /var/log/ansible.log
|
||||||
|
|
||||||
forks = 20
|
forks = 20
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
gathering = smart
|
gathering = smart
|
||||||
fact_caching = jsonfile
|
fact_caching = jsonfile
|
||||||
|
@ -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
|
||||||
|
@ -30,7 +31,7 @@ timeout = 60
|
||||||
# see: https://github.com/ansible/ansible/issues/11536
|
# see: https://github.com/ansible/ansible/issues/11536
|
||||||
control_path = %(directory)s/%%h-%%r-%%p
|
control_path = %(directory)s/%%h-%%r-%%p
|
||||||
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
|
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
|
||||||
pipelining = True
|
pipelining = True
|
||||||
|
|
||||||
# Option to retry failed ssh executions if the failure is encountered in ssh itself
|
# Option to retry failed ssh executions if the failure is encountered in ssh itself
|
||||||
retries = 10
|
retries = 10
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue