Make tests for group membership more readable
This commit is contained in:
parent
8a25609749
commit
77f4643628
9 changed files with 24 additions and 24 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue