summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chaos-at-home/ch-epimetheus.yml26
-rw-r--r--inventory/host_vars/ch-epimetheus.yml2
2 files changed, 27 insertions, 1 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
diff --git a/inventory/host_vars/ch-epimetheus.yml b/inventory/host_vars/ch-epimetheus.yml
index 6339db15..79301d33 100644
--- a/inventory/host_vars/ch-epimetheus.yml
+++ b/inventory/host_vars/ch-epimetheus.yml
@@ -8,7 +8,7 @@ network:
nameservers: "{{ network_zones.lan.dns }}"
domain: "{{ host_domain }}"
primary: &_network_primary_
- name: eno1
+ name: enp5s0
address: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
gateway: "{{ network_zones.lan.gateway }}"
interfaces: