summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-01-23 23:19:19 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-01-23 23:19:19 +0100
commitcd8cea44eb13482af73734589ef9de225d82da37 (patch)
tree8bbcb94f53923cb75c121e9c64e7ada164cb59d5 /chaos-at-home
parentadd wakeonlan role (diff)
add basic playbook for epimetheus
Diffstat (limited to 'chaos-at-home')
-rw-r--r--chaos-at-home/ch-epimetheus.yml26
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