From: Thorsten Date: Sat, 8 Jun 2024 16:50:41 +0000 (+0200) Subject: deployment QoL X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=57410a9fb464ad920f1724c4e04faf0ef3d74cd9;p=urlbot-v3.git deployment QoL --- diff --git a/deploy/deploy.sh b/deploy/deploy.sh index c0e7f23..49b959d 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -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 diff --git a/deploy/deploy.yml b/deploy/deploy.yml index 2ba3173..fb39a0b 100644 --- a/deploy/deploy.yml +++ b/deploy/deploy.yml @@ -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