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 /ansible/stamina.yml | |
parent | 25bfebacc085ed6a206f0d07cc18773b54297e32 (diff) | |
download | ansibleness-b6afe2f76b6b6cc5f8ec1c86e03684f15efac9f6.tar.gz |
stamina: update to bookworm
Sponsored-by: author
Diffstat (limited to 'ansible/stamina.yml')
-rw-r--r-- | ansible/stamina.yml | 27 |
1 files changed, 13 insertions, 14 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 |