tripleo_container_manage: avoid excessive logging with podman facts

podman_container_info module generates a bunch of logging, which is all
infos reported by podman inspect. It's useful only when you do some
debug; so let's disable its output when debug isn't enabled.

Change-Id: Ib35d18e5bfa8bbfdff75fda6c52ea7c770f6f986
This commit is contained in:
Emilien Macchi 2020-02-14 10:23:38 -05:00
parent 0e24247d2c
commit 51b55bc901
4 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,7 @@
- name: Gather podman infos
podman_container_info: {}
register: podman_containers
no_log: "{{ not tripleo_container_manage_debug }}"
when:
- tripleo_container_manage_cli == 'podman'

View File

@ -49,7 +49,7 @@
if paunch is used against a deployment done with tripleo_container_manage.
- name: Generate containers configs data
no_log: "{{ false if tripleo_container_manage_debug else true }}"
no_log: "{{ not tripleo_container_manage_debug }}"
block:
- name: "Find all matching configs configs for in {{ tripleo_container_manage_config }}"
find:

View File

@ -128,7 +128,7 @@
# We can't use "rescue" here because the debug tasks use
# "podman_containers_infos".
ignore_errors: true
no_log: true
no_log: "{{ not tripleo_container_manage_debug }}"
- name: Create a list of containers which didn't exit
set_fact:
running_containers: >-

View File

@ -17,6 +17,7 @@
- name: Gather podman infos
podman_container_info: {}
register: podman_containers
no_log: "{{ not tripleo_container_manage_debug }}"
when:
- tripleo_container_manage_cli == 'podman'