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

@ -57,11 +57,11 @@
[Install]
WantedBy=multi-user.target
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
when: "'teacherlaptop' not in group_names"
- name: Enable the enable-wifi service
ansible.builtin.systemd:
name: enable-wifi.service
enabled: True
daemon_reload: True
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
when: "'teacherlaptop' not in group_names"