Merge "tripleo_container_manage: disable logging for tasks using container_data" into stable/train

This commit is contained in:
Zuul 2020-02-20 05:38:16 +00:00 committed by Gerrit Code Review
commit 3b51d828ea
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@
config_id=tripleo_container_manage_config_id, clean_orphans=False) }}
- name: "Async container create/run"
no_log: "{{ not tripleo_container_manage_debug }}"
async: "{{ (not ansible_check_mode | bool) | ternary('600', omit) }}"
poll: "{{ (not ansible_check_mode | bool) | ternary('0', omit) }}"
register: create_async_results
@ -77,6 +78,7 @@
volumes_from: "{{ lookup('dict', container_data).value.volumes_from | default([]) }}"
- name: "Check podman create status"
no_log: "{{ not tripleo_container_manage_debug }}"
async_status:
jid: "{{ create_async_result_item.ansible_job_id }}"
loop: "{{ create_async_results.results }}"

View File

@ -22,6 +22,7 @@
when: not ansible_check_mode|bool
- name: "Async container exec"
no_log: "{{ not tripleo_container_manage_debug }}"
command:
argv: "{{ lookup('dict', container_exec_data).value | container_exec_cmd(cli=tripleo_container_manage_cli) }}"
async: "{{ (not ansible_check_mode | bool) | ternary('60', omit) }}"
@ -33,6 +34,7 @@
when: not ansible_check_mode|bool
- name: "Check podman exec status"
no_log: "{{ not tripleo_container_manage_debug }}"
async_status:
jid: "{{ exec_async_result_item.ansible_job_id }}"
loop: "{{ exec_async_results.results }}"
@ -48,6 +50,7 @@
- ansible_check_mode|bool
block:
- name: "Create a list of podman exec commands that are run"
no_log: "{{ not tripleo_container_manage_debug }}"
set_fact:
containers_commands: >-
{{ (containers_commands | default([])) + ([lookup('dict', container_exec_data).value |