diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-07-30 18:27:25 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-07-30 18:27:25 +0300 |
commit | b6afe2f76b6b6cc5f8ec1c86e03684f15efac9f6 (patch) | |
tree | 6457e34e153ae2eda38cdf3c424d3e575010ebc3 | |
parent | 25bfebacc085ed6a206f0d07cc18773b54297e32 (diff) | |
download | ansibleness-b6afe2f76b6b6cc5f8ec1c86e03684f15efac9f6.tar.gz |
stamina: update to bookworm
Sponsored-by: author
-rw-r--r-- | ansible/stamina.yml | 27 | ||||
-rw-r--r-- | v-i/stamina-spec.yaml | 5 |
2 files changed, 15 insertions, 17 deletions
diff --git a/ansible/stamina.yml b/ansible/stamina.yml index 4c6ecff..dfd70b5 100644 --- a/ansible/stamina.yml +++ b/ansible/stamina.yml @@ -114,20 +114,19 @@ then echo >> /home/liw/.ssh/vmadm fi - # - name: "create ~liw/.config/vmadm" - # file: - # state: directory - # path: /home/liw/.config/vmadm - # owner: liw - # group: liw - # mode: 0755 - # - name: "configure vmadm" - # copy: - # src: vmadm.yaml - # dest: /home/liw/.config/vmadm/config.yaml - # owner: liw - # group: liw - # mode: 0644 + - name: "install SSH user CA key" + copy: + content: "{{ lookup('pipe', 'sshca ca public-key liw.fi/ca/user/v5') }}" + dest: /home/liw/.ssh/userca.pub + owner: liw + group: liw + mode: 0644 + - name: "ensure SSH user CA key file ends in a newline" + shell: | + if [ "$(tail -n1 /home/liw/.ssh/userca.pub | wc -l)" = 0 ] + then + echo >> /home/liw/.ssh/userca.pub + fi - name: "enable libvirt 'default' network" virt_net: name: default diff --git a/v-i/stamina-spec.yaml b/v-i/stamina-spec.yaml index 3eb2cf6..6a9aede 100644 --- a/v-i/stamina-spec.yaml +++ b/v-i/stamina-spec.yaml @@ -6,6 +6,5 @@ extra_lvs: - name: vms size: 500G mounted: /mnt/vms -ansible_vars: - user_pub: | - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPQe6lsTapAxiwhhEeE/ixuK+5N8esCsMWoekQqjtxjP liw personal systems +ansible_vars_files: + - hostid.yml |