diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-01-23 23:19:19 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-01-23 23:19:19 +0100 |
commit | cd8cea44eb13482af73734589ef9de225d82da37 (patch) | |
tree | 8bbcb94f53923cb75c121e9c64e7ada164cb59d5 /chaos-at-home/ch-epimetheus.yml | |
parent | add wakeonlan role (diff) |
add basic playbook for epimetheus
Diffstat (limited to 'chaos-at-home/ch-epimetheus.yml')
-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 |