Add the cron jobs to shutdown automatically at night, but debating whether it's a good idea.
This commit is contained in:
21
tasks/workstation/shared/cron/shutdown.yml
Normal file
21
tasks/workstation/shared/cron/shutdown.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
# TBD:
|
||||
# - Decide whether this should be added to local.yml since wall does not work with gnome-terminal.
|
||||
---
|
||||
|
||||
- name: Workstation | Shared | Cron | Root | Shutdown Warnings
|
||||
cron:
|
||||
user: root
|
||||
name: "Shutdown Warnings"
|
||||
minute: "*"
|
||||
hour: "19-23"
|
||||
job: /usr/bin/wall "Shutting down soon! Please save your work!" && /usr/sbin/shutdown --show
|
||||
state: present
|
||||
|
||||
- name: Workstation | Shared | Cron | Root | Shutdown
|
||||
cron:
|
||||
user: root
|
||||
name: "Shutdown"
|
||||
minute: "*/5"
|
||||
hour: "20-23"
|
||||
job: /usr/sbin/shutdown -h 4
|
||||
state: present
|
||||
Reference in New Issue
Block a user