Teacherlaptops don't need pwroff service and suspend function will not be disabled.
This commit is contained in:
parent
30749ac24b
commit
da88db0061
2 changed files with 5 additions and 0 deletions
|
@ -139,6 +139,7 @@
|
|||
- pwroff.timer
|
||||
- reporter.service
|
||||
- reporter.timer
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
|
||||
- name: Enable pwroff.timer
|
||||
systemd:
|
||||
|
@ -147,6 +148,7 @@
|
|||
loop:
|
||||
- pwroff.timer
|
||||
- reporter.timer
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
|
||||
- name: PXE first boot order
|
||||
command: /usr/local/sbin/bootorder.sh
|
||||
|
@ -196,6 +198,7 @@
|
|||
[AC][SuspendSession][$i]
|
||||
idleTime=7200000
|
||||
suspendType=8
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
|
||||
- name: Start with empty session by default
|
||||
ansible.builtin.copy:
|
||||
|
|
|
@ -104,6 +104,7 @@
|
|||
path: /etc/systemd/sleep.conf.d/
|
||||
state: directory
|
||||
mode: '0755'
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
|
||||
- name: Avoid suspending
|
||||
blockinfile:
|
||||
|
@ -115,6 +116,7 @@
|
|||
AllowHibernation=no
|
||||
AllowSuspendThenHibernate=no
|
||||
AllowHybridSleep=no
|
||||
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
|
||||
|
||||
- name: Deploy dolphin script
|
||||
copy:
|
||||
|
|
Loading…
Add table
Reference in a new issue