diff --git a/tripleo_common/actions/ansible.py b/tripleo_common/actions/ansible.py index 2482e3d6d..e508b8e99 100644 --- a/tripleo_common/actions/ansible.py +++ b/tripleo_common/actions/ansible.py @@ -61,7 +61,8 @@ def write_default_ansible_cfg(work_dir, '/usr/share/ansible/tripleo-plugins/callback:' '/usr/share/ansible/plugins/callback:' '%s/callback_plugins' % constants.DEFAULT_VALIDATIONS_BASEDIR) - callbacks_whitelist = ','.join(['tripleo_dense', 'tripleo_profile_tasks']) + callbacks_whitelist = ','.join(['tripleo_dense', 'tripleo_profile_tasks', + 'tripleo_states']) action_plugins_path = ( '~/.ansible/plugins/action:' '/usr/share/ansible/plugins/action:' @@ -421,7 +422,7 @@ class AnsiblePlaybookAction(base.TripleOAction): # the whitelist could be collected from multiple # arguments if we find a use case for it 'ANSIBLE_CALLBACK_WHITELIST': - 'tripleo_dense,tripleo_profile_tasks', + 'tripleo_dense,tripleo_profile_tasks,tripleo_states', 'ANSIBLE_STDOUT_CALLBACK': 'tripleo_dense', 'PROFILE_TASKS_TASK_OUTPUT_LIMIT': six.text_type(self.profile_tasks_limit), diff --git a/tripleo_common/tests/actions/test_ansible.py b/tripleo_common/tests/actions/test_ansible.py index 5193f5b37..2fac74a06 100644 --- a/tripleo_common/tests/actions/test_ansible.py +++ b/tripleo_common/tests/actions/test_ansible.py @@ -72,7 +72,7 @@ class AnsiblePlaybookActionTest(base.TestCase): 'ANSIBLE_LOCAL_TEMP': action.work_dir, 'ANSIBLE_CONFIG': ansible_config_path, 'ANSIBLE_CALLBACK_WHITELIST': - 'tripleo_dense,tripleo_profile_tasks', + 'tripleo_dense,tripleo_profile_tasks,tripleo_states', 'ANSIBLE_STDOUT_CALLBACK': 'tripleo_dense', 'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20', }