From 990cca083959faeb1527447fc3be2255c9bf6e50 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Tue, 25 May 2021 22:40:38 +0300 Subject: [PATCH] Correct values for podman container Use 'network' instead of 'net' alias. Use state 'started' to ensure container is started[1] [1] https://github.com/containers/ansible-podman-collections/issues/257 Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820 --- .../roles/tripleo_container_manage/tasks/podman/create.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 c85bdaacb..5111101a7 100644 --- a/tripleo_ansible/roles/tripleo_container_manage/tasks/podman/create.yml +++ b/tripleo_ansible/roles/tripleo_container_manage/tasks/podman/create.yml @@ -70,13 +70,13 @@ memory: "{{ lookup('dict', container_data).value.mem_limit | default(omit) }}" memory_swap: "{{ lookup('dict', container_data).value.mem_swappiness | default(omit) }}" name: "{{ lookup('dict', container_data).key }}" - net: "{{ lookup('dict', container_data).value.net | default('none') }}" + network: "{{ lookup('dict', container_data).value.net | default('none') }}" pid: "{{ lookup('dict', container_data).value.pid | default(omit) }}" pids_limit: "{{ lookup('dict', container_data).value.pids_limit | default(omit) }}" privileged: "{{ lookup('dict', container_data).value.privileged | default(false) }}" rm: "{{ lookup('dict', container_data).value.remove | default(false) }}" security_opt: "{{ lookup('dict', container_data).value.security_opt | default(omit) }}" - state: present + state: started stop_signal: "{{ lookup('dict', container_data).value.stop_signal | default(omit) }}" stop_timeout: "{{ lookup('dict', container_data).value.stop_grace_period | default(omit) }}" sysctl: "{{ lookup('dict', container_data).value.sysctl | default(omit) }}"