Browse Source

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
(cherry picked from commit 990cca0839)
changes/52/793452/1
Sagi Shnaidman 3 weeks ago
committed by Shnaidman Sagi (Sergey)
parent
commit
e5c57dbf48
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tripleo_ansible/roles/tripleo_container_manage/tasks/podman/create.yml

+ 2
- 2
tripleo_ansible/roles/tripleo_container_manage/tasks/podman/create.yml View File

@ -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) | int }}"
sysctl: "{{ lookup('dict', container_data).value.sysctl | default(omit) }}"


Loading…
Cancel
Save