Set timeout to default if not configured

When "| int" is set after "omit" it sets parameter to 0 instead
of omitting.

Change-Id: Iee9085fa4992846e36c7e71d4c2cfc3bc9db42ac
changes/32/748832/2
Sagi Shnaidman 2 years ago
parent 5702b7ba3d
commit 8a0bccadcd
  1. 2
      tripleo_ansible/roles/tripleo_container_manage/tasks/podman/create.yml

@ -78,7 +78,7 @@
security_opt: "{{ lookup('dict', container_data).value.security_opt | default(omit) }}"
state: present
stop_signal: "{{ lookup('dict', container_data).value.stop_signal | default(omit) }}"
stop_timeout: "{{ lookup('dict', container_data).value.stop_grace_period | default(omit) | int }}"
stop_timeout: "{{ lookup('dict', container_data).value.stop_grace_period | default(omit) }}"
sysctl: "{{ lookup('dict', container_data).value.sysctl | default(omit) }}"
tty: "{{ lookup('dict', container_data).value.tty | default(false) }}"
ulimit: "{{ lookup('dict', container_data).value.ulimit | default(omit) }}"

Loading…
Cancel
Save