diff --git a/tox.ini b/tox.ini index b31ca8452..21060d7f3 100644 --- a/tox.ini +++ b/tox.ini @@ -139,11 +139,6 @@ commands = python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {toxinidir}/tests/test_molecule.py [testenv:mol-test_json_error_callback] -setenv = - {[testenv]setenv} - JSON_ERROR_LOG_FILE=/tmp/json_error.log - ANSIBLE_LOAD_CALLBACK_PLUGINS=true - ANSIBLE_CALLBACK_WHITELIST=json_error basepython = {[testenv:mol]basepython} deps = {[testenv:mol]deps} changedir = {toxinidir}/tripleo_ansible/roles/test_json_error_callback diff --git a/tripleo_ansible/roles/test_json_error_callback/molecule/default/molecule.yml b/tripleo_ansible/roles/test_json_error_callback/molecule/default/molecule.yml index 513dcec24..b9e1b4ad1 100644 --- a/tripleo_ansible/roles/test_json_error_callback/molecule/default/molecule.yml +++ b/tripleo_ansible/roles/test_json_error_callback/molecule/default/molecule.yml @@ -30,9 +30,13 @@ platforms: provisioner: name: ansible + config_options: + defaults: + callback_whitelist: json_error log: true env: ANSIBLE_STDOUT_CALLBACK: yaml + JSON_ERROR_LOG_FILE: /tmp/json_error.log scenario: test_sequence: