Skip to content

Commit fc68f85

Browse files
committed
Make logic compliant
1 parent 39308e9 commit fc68f85

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ansible/generate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- name: Set UID
2020
tags: [ "always" ]
2121
changed_when: false
22-
when: lookup('env', 'PUID')
22+
when: lookup('env', 'PUID') | ternary(True, False)
2323
user:
2424
name: abc
2525
non_unique: yes
@@ -28,7 +28,7 @@
2828
- name: Set GID
2929
tags: [ "always" ]
3030
changed_when: false
31-
when: lookup('env', 'PGID')
31+
when: lookup('env', 'PGID') | ternary(True, False)
3232
group:
3333
name: abc
3434
non_unique: yes

ansible/roles/github/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
- permissions.yml
3030

3131
- name: Populate conditional Github workflows
32-
when: item.when
32+
when: item.when | ternary(True, False)
3333
template:
3434
src: "{{ item.file }}.j2"
3535
dest: "/tmp/.github/workflows/{{ item.file }}"

0 commit comments

Comments
 (0)