diff --git a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml index 01467d8d1..47e66b354 100644 --- a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml +++ b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/create.yml @@ -97,7 +97,7 @@ var: containers_commands - name: "Append the list of all podman commands that are run for containers with changes" set_fact: - all_containers_commands: "{{ containers_commands + (all_containers_commands | default([]) | list) }}" + all_containers_commands: "{{ containers_commands|default([], true) + (all_containers_commands | default([]) | list) }}" - name: "Print the list of containers which changed" debug: diff --git a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml index a955132b9..f9ce4c5f2 100644 --- a/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml +++ b/tripleo_ansible/roles/tripleo-container-manage/tasks/podman/exec.yml @@ -60,4 +60,4 @@ var: containers_commands - name: "Append the list of all podman commands that are run for containers with changes" set_fact: - all_containers_commands: "{{ containers_commands + (all_containers_commands | default([]) | list) }}" + all_containers_commands: "{{ containers_commands|default([], true) + (all_containers_commands | default([]) | list) }}"