Fix undefined update_containers variable
When checking for update_containers var we need to check if it's defined at all. Also all booleans should be with |bool Closes-Bug: #1777261 Change-Id: Ied1ea6f6f0656b182a6b29fd1b69fc5596ac5f28
This commit is contained in:
parent
f159c5a924
commit
9e209a28c9
|
@ -24,4 +24,4 @@
|
|||
- name: Set update_containers_append_tag for the play
|
||||
set_fact:
|
||||
update_containers_append_tag: "{{ lookup('pipe','date +-updated-%Y%m%d%H%M%S') }}"
|
||||
when: update_containers and update_containers_append_tag is undefined
|
||||
when: update_containers is defined and update_containers|bool and update_containers_append_tag is undefined
|
||||
|
|
Loading…
Reference in New Issue