blob: 1479abd208d2919a3bd6604a8af3871a698c704e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
---
- name: Basic Setup
hosts: ch-epimetheus
roles:
- role: apt-repo/base
- role: core/base
- role: core/sshd
- role: core/zsh
- role: core/ntp
- role: network/wakeonlan
post_tasks:
- name: install simple suspend script
copy:
content: |
#!/bin/bash
if [ -z "$1" ]; then
echo "suspending indefinitely"
systemctl suspend
else
#rtcwake --seconds 300 -m mem
echo "suspending for $1"
rtcwake --time $(date -d "$1" +%s) -m mem
fi
dest: /root/suspend.sh
mode: 0755
|