Skip to content

Commit 3526004

Browse files
author
Derek
committed
fix: use | bool filter for Ansible 2.16+ conditional compatibility
1 parent 3eeab9a commit 3526004

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • ansible/roles/dfe_developer/tasks

ansible/roles/dfe_developer/tasks/init.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,30 @@
8383
changed_when: false
8484
when:
8585
- ansible_distribution != 'MacOSX'
86-
- not (dfe_force_gnome | default(false))
86+
- not (dfe_force_gnome | default(false) | bool)
8787

8888
- name: Check if GNOME Shell is installed (fallback for headless/template builds)
8989
ansible.builtin.stat:
9090
path: /usr/bin/gnome-shell
9191
register: gnome_shell_installed
9292
when:
9393
- ansible_distribution != 'MacOSX'
94-
- not (dfe_force_gnome | default(false))
94+
- not (dfe_force_gnome | default(false) | bool)
9595

9696
- name: Set GNOME availability fact (Linux - running session)
9797
ansible.builtin.set_fact:
9898
dfe_has_gnome: "{{ gnome_running_check.rc == 0 }}"
9999
when:
100100
- ansible_distribution != 'MacOSX'
101-
- not (dfe_force_gnome | default(false))
101+
- not (dfe_force_gnome | default(false) | bool)
102102
- gnome_running_check is defined
103103

104104
- name: Set GNOME availability fact (Linux - forced for headless/template builds)
105105
ansible.builtin.set_fact:
106106
dfe_has_gnome: true
107107
when:
108108
- ansible_distribution != 'MacOSX'
109-
- dfe_force_gnome | default(false)
109+
- dfe_force_gnome | default(false) | bool
110110

111111
- name: Set GNOME availability fact (macOS - N/A)
112112
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)