]> git.aero2k.de Git - urlbot-v3.git/commitdiff
deployment QoL
authorThorsten <mail@aero2k.de>
Sat, 8 Jun 2024 16:50:41 +0000 (18:50 +0200)
committerThorsten <mail@aero2k.de>
Sat, 8 Jun 2024 16:50:41 +0000 (18:50 +0200)
deploy/deploy.sh
deploy/deploy.yml

index c0e7f23f28a118c8b5c6fe144c4d567bcf74015b..49b959d7364e33d1af44662d35a37ac1aff3cc02 100755 (executable)
@@ -7,6 +7,6 @@ source "${HOME}/.virtualenvs/ansible/bin/activate"
 
 export ANSIBLE_VAULT_PASSWORD_FILE=vault.sh
 
-ansible-playbook -i hosts deploy.yml -D
+ansible-playbook -i hosts deploy.yml -D $*
 
 popd || exit
index 2ba3173981017d5ec9b30335bd46c888305e9415..fb39a0b56de9a3501627caee8379c0573bda7bf2 100644 (file)
@@ -9,7 +9,10 @@
       comment: "Account for the urlbot"
       shell: /bin/bash
   - name: local user can log in with ssh key
-    authorized_key: user=jabberbot key="{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
+    authorized_key: user=jabberbot key="{{ lookup('file', item) }}"
+    with_fileglob:
+    - "~/.ssh/*.pub"
+
   - name: ensure venv module is installed
     apt:
       name: python3-venv