diff options
Diffstat (limited to 'chaos-at-home')
-rw-r--r-- | chaos-at-home/ch-epimetheus.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chaos-at-home/ch-epimetheus.yml b/chaos-at-home/ch-epimetheus.yml new file mode 100644 index 00000000..1479abd2 --- /dev/null +++ b/chaos-at-home/ch-epimetheus.yml @@ -0,0 +1,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 |