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
|
@ -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
Add a link
Reference in a new issue