blob: b6c3b95a4f791f0c3d1e93ccf1b7a43518e5a4c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
---
- name: Basic Setup
hosts: sk-tomnext
roles:
- role: apt-repo/base
- role: core/base
- role: core/sshd
- role: core/zsh
- role: core/cpu-microcode
- role: core/admin-users
- role: cryptdisk
- role: zfs/base
- role: apt-repo/spreadspace
- role: zfs/sanoid
- role: vm/host
- role: installer/debian/base
tasks:
- name: install post-boot script
copy:
dest: /usr/local/bin/post-boot
mode: 0755
content: |
#!/bin/bash
set -e
{% for name, volume in cryptdisk_volumes.items() %}
cryptsetup luksOpen '{{ volume.device }}' '{{ name }}'
{% endfor %}
systemctl restart zfs-import-cache.service
systemctl restart zfs-mount.service
systemctl restart zfs-share.service
systemctl restart zfs-zed.service
mount -a
sleep 2
systemctl restart libvirtd.service
|