Fix ansible run during installation with limitted groups.

This commit is contained in:
Andreas B. Mundt 2024-02-24 09:30:48 +01:00
parent 8856b74e91
commit ed7dadf612
3 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@
cmd: unzip -d /tmp/cb/ CodeBlocks.zip && dpkg -i cb/*.deb
chdir: /tmp/
when: codeblocks_version.stdout is not search('svn13456')
when: inventory_hostname in groups.PCroom
when: groups.PCroom is defined and inventory_hostname in groups.PCroom
## Temporarily fix boot order
- name: Check for the buggy kernel

View file

@ -136,7 +136,7 @@
command: /usr/local/sbin/bootorder.sh
register: cmd_result
changed_when: cmd_result.stdout is not search('Nothing to do.')
when: inventory_hostname in groups["PCroom"]
when: groups.PCroom is defined and inventory_hostname in groups.PCroom
- name: Copy dolphin config scripts
ansible.builtin.copy:

View file

@ -26,4 +26,4 @@
deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-proposed-updates
main non-free-firmware
state: present
when: inventory_hostname in groups["R202"]
when: groups.R202 is defined and inventory_hostname in groups.R202