From 5d238b1b574c1598d5cbbd5fd6c80f198641a7b8 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 31 Mar 2020 15:54:58 -0500 Subject: [PATCH] Use ansible debug callback plugin The normal callback plugin is unreadable for stdout and stderr things. Update to use the debug plugin which prints their output nicely in the way we'd like. Change-Id: I3a6b31af7d6132a1ee31a280f7f21f3132856273 --- playbooks/bridge.yaml | 3 +++ playbooks/roles/install-ansible/templates/ansible.cfg.j2 | 1 + 2 files changed, 4 insertions(+) diff --git a/playbooks/bridge.yaml b/playbooks/bridge.yaml index 708533ad66..cff1407769 100644 --- a/playbooks/bridge.yaml +++ b/playbooks/bridge.yaml @@ -12,6 +12,9 @@ # install_ansible_version: '{{ bridge_ansible_version | default(None) }}' - role: install-ansible install_ansible_name: '{{ bridge_ansible_name | default("ansible") }}' + # NOTE(mordred): Do not upgrade this to 2.10 without figuring out an install for the + # debug callback plugin which moved out of tree in 2.10. It might be in Ansible Community + # Distro - but needs to be verified before we do it. install_ansible_version: '{{ bridge_ansible_version | default("2.9.1") }}' install_ansible_openstacksdk_name: '{{ bridge_openstacksdk_name | default("openstacksdk") }}' install_ansible_openstacksdk_version: '{{ bridge_openstacksdk_verison | default("latest") }}' diff --git a/playbooks/roles/install-ansible/templates/ansible.cfg.j2 b/playbooks/roles/install-ansible/templates/ansible.cfg.j2 index a343ff5dd9..dc6654796a 100644 --- a/playbooks/roles/install-ansible/templates/ansible.cfg.j2 +++ b/playbooks/roles/install-ansible/templates/ansible.cfg.j2 @@ -17,6 +17,7 @@ callback_plugins=/etc/ansible/callback_plugins:{{ install_ansible_ara_callback_p {% else %} callback_plugins=/etc/ansible/callback_plugins {% endif %} +stdout_callback=debug [inventory] enable_plugins=yaml,yamlgroup,advanced_host_list,ini