From ad0e8bd2414416a65bfb6807a7c0a890974ba252 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 28 Aug 2018 16:58:05 -0400 Subject: [PATCH] Add profile_tasks and timer callbacks for ansible These add extra datetime information to tasks, in an effort to help profile ansible. More info at: https://docs.ansible.com/ansible/2.5/plugins/callback/profile_tasks.html https://docs.ansible.com/ansible/2.5/plugins/callback/timer.html Change-Id: Iebd40bfe06484ec1c6f938570eb6cb60e532fb9f Signed-off-by: Paul Belanger --- playbooks/roles/install-ansible/files/ansible.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/install-ansible/files/ansible.cfg b/playbooks/roles/install-ansible/files/ansible.cfg index a68836ee26..1dc21c01aa 100644 --- a/playbooks/roles/install-ansible/files/ansible.cfg +++ b/playbooks/roles/install-ansible/files/ansible.cfg @@ -3,6 +3,7 @@ inventory=/opt/system-config/inventory/openstack.yaml,/opt/system-config/invento library=/usr/share/ansible log_path=/var/log/ansible/ansible.log callback_plugins=/etc/ansible/callback_plugins +callback_whitelist=profile_tasks, timer inventory_plugins=/etc/ansible/inventory_plugins roles_path=/opt/system-config/roles:/etc/ansible/roles retry_files_enabled=False @@ -11,7 +12,6 @@ gathering=smart fact_caching=jsonfile fact_caching_connection=/var/cache/ansible/facts - [inventory] enable_plugins=openstack,constructed,yaml,advanced_host_list,ini cache=True