We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39308e9 commit fc68f85Copy full SHA for fc68f85
2 files changed
ansible/generate.yml
@@ -19,7 +19,7 @@
19
- name: Set UID
20
tags: [ "always" ]
21
changed_when: false
22
- when: lookup('env', 'PUID')
+ when: lookup('env', 'PUID') | ternary(True, False)
23
user:
24
name: abc
25
non_unique: yes
@@ -28,7 +28,7 @@
28
- name: Set GID
29
30
31
- when: lookup('env', 'PGID')
+ when: lookup('env', 'PGID') | ternary(True, False)
32
group:
33
34
ansible/roles/github/tasks/main.yml
@@ -29,7 +29,7 @@
- permissions.yml
- name: Populate conditional Github workflows
- when: item.when
+ when: item.when | ternary(True, False)
template:
src: "{{ item.file }}.j2"
35
dest: "/tmp/.github/workflows/{{ item.file }}"
0 commit comments