Make tests for group membership more readable

This commit is contained in:
Andreas B. Mundt 2024-11-21 11:20:26 +01:00
parent 8a25609749
commit 77f4643628
9 changed files with 24 additions and 24 deletions

View file

@ -38,7 +38,7 @@
line: 'SystemGroup root lpadmin role-teacher'
regexp: '^SystemGroup'
state: present
when: groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop
when: "'teacherlaptop' in group_names"
- name: Disable cups-browsed
ansible.builtin.systemd: