Merge "tripleo_container_manage: only run exec/create playbooks when needed"

This commit is contained in:
Zuul 2020-07-13 17:17:26 +00:00 committed by Gerrit Code Review
commit ede2f86cba
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@
- name: Run containers execs asynchronously - name: Run containers execs asynchronously
include_tasks: podman/exec.yml include_tasks: podman/exec.yml
when:
- ((batched_container_data | haskey(attribute='action', value='exec') | default([])) | length > 0)
- name: Manage containers asynchronously - name: Manage containers asynchronously
include_tasks: podman/create.yml include_tasks: podman/create.yml
when:
- ((batched_container_data | haskey(attribute='action', reverse=True) | default([])) | length > 0)