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
|
@ -92,7 +92,7 @@
|
|||
- plasma-discover
|
||||
autoremove: true
|
||||
state: absent
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
when: "'teacherlaptop' not in group_names"
|
||||
|
||||
- name: Make sure wireshark works for all users after installation and upgrades
|
||||
ansible.builtin.copy:
|
||||
|
@ -160,7 +160,7 @@
|
|||
- pwroff.timer
|
||||
- reporter.service
|
||||
- reporter.timer
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
when: "'teacherlaptop' not in group_names"
|
||||
|
||||
- name: Enable pwroff.timer
|
||||
systemd:
|
||||
|
@ -169,13 +169,13 @@
|
|||
loop:
|
||||
- pwroff.timer
|
||||
- reporter.timer
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
when: "'teacherlaptop' not in group_names"
|
||||
|
||||
- name: PXE first boot order
|
||||
command: /usr/local/sbin/bootorder.sh
|
||||
register: cmd_result
|
||||
changed_when: cmd_result.stdout is not search('Nothing to do.')
|
||||
when: groups.PCroom is defined and inventory_hostname in groups.PCroom
|
||||
when: "'PCroom' in group_names"
|
||||
|
||||
- name: Copy dolphin config scripts
|
||||
ansible.builtin.copy:
|
||||
|
@ -220,7 +220,7 @@
|
|||
[AC][SuspendSession]
|
||||
idleTime=7200000
|
||||
suspendType=8
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
when: "'teacherlaptop' not in group_names"
|
||||
|
||||
- name: Start with empty session by default
|
||||
ansible.builtin.copy:
|
||||
|
@ -251,7 +251,7 @@
|
|||
Exec=lmn-fix-screen
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
when: groups.CloneScreen is defined and inventory_hostname in groups.CloneScreen
|
||||
when: "'CloneScreen' in group_names"
|
||||
|
||||
#- name: Avoid starting kscreen (confusing autodetection)
|
||||
# ansible.builtin.copy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue