From 15bdc78c65159834c9a3335c88053589535549ef Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 8 Jan 2023 23:16:09 +0100 Subject: ch-epimetheus now is a RPi CM4 --- chaos-at-home/ch-epimetheus.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'chaos-at-home') diff --git a/chaos-at-home/ch-epimetheus.yml b/chaos-at-home/ch-epimetheus.yml index 148cda82..d091ffc5 100644 --- a/chaos-at-home/ch-epimetheus.yml +++ b/chaos-at-home/ch-epimetheus.yml @@ -7,32 +7,18 @@ - role: core/sshd/base - role: core/zsh - role: core/ntp - - role: core/cpu-microcode + +- name: Payload Setup + hosts: ch-epimetheus + roles: - role: apt-repo/spreadspace - role: nginx/base - role: monitoring/prometheus/exporter - - role: network/wakeonlan - role: storage/luks/volumes - role: storage/zfs/pools - role: storage/zfs/sanoid - role: storage/zfs/syncoid 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 - - name: install post-boot script copy: dest: /usr/local/bin/post-boot @@ -59,8 +45,6 @@ content: | #!/bin/bash {% set disk_variables = [] %} - disk_primary=$(basename $(realpath '{{ install.disks.primary }}')) - {{ disk_variables.append('$disk_primary') -}} {% for name,volume in luks_volumes.items() %} disk_{{ name | replace('-', '_') }}=$(basename $(realpath '{{ volume.device }}')) {{ disk_variables.append('$disk_'+(name | replace('-', '_'))) -}} -- cgit v1.2.3