Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Correct values for podman container
Browse files Browse the repository at this point in the history
Use 'network' instead of 'net' alias.
Use state 'started' to ensure container is started[1]

[1] containers/ansible-podman-collections#257
Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820
(cherry picked from commit 990cca0)
  • Loading branch information
sshnaidm committed May 28, 2021
1 parent f484317 commit 2b5ac33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}"
Expand Down

0 comments on commit 2b5ac33

Please sign in to comment.