Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 6b66cbc

Browse files
committed
fix bug with ternary + undefined variable
1 parent 58938c4 commit 6b66cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141

142142
- name: "Schedule build and sync"
143143
include_tasks: schedule_build_and_sync.yml
144-
when: (tests_is_container is defined) | ternary(not tests_is_container, ansible_env.container is undefined)
144+
when: ((not tests_is_container) if tests_is_container is defined else (ansible_env.container is undefined))
145145

146146
- name: "Build now (container)"
147147
include_tasks: build.yml
148-
when: ((tests_is_container is defined) | ternary(tests_is_container, ansible_env.container is defined)) and builder_container_build_now|bool
148+
when: (tests_is_container if tests_is_container is defined else (ansible_env.container is defined)) and builder_container_build_now|bool
149149

0 commit comments

Comments
 (0)