Browse Source

tripleo_container_manage: only run exec/create playbooks when needed

Only run these playbooks when there are some containers to manage with
exec/create actions.

Change-Id: I40a75a14a5bb4e898229b6f2306bf4a784f26cf7
(cherry picked from commit 636d7c1759)
tags/1.5.0
Emilien Macchi 2 months ago
parent
commit
831e6f6f66
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tripleo_ansible/roles/tripleo_container_manage/tasks/podman/manage.yml

+ 4
- 0
tripleo_ansible/roles/tripleo_container_manage/tasks/podman/manage.yml View File

@@ -16,6 +16,10 @@

- name: Run containers execs asynchronously
include_tasks: podman/exec.yml
when:
- ((batched_container_data | haskey(attribute='action', value='exec') | default([])) | length > 0)

- name: Manage containers asynchronously
include_tasks: podman/create.yml
when:
- ((batched_container_data | haskey(attribute='action', reverse=True) | default([])) | length > 0)

Loading…
Cancel
Save