From 57410a9fb464ad920f1724c4e04faf0ef3d74cd9 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 8 Jun 2024 18:50:41 +0200 Subject: [PATCH] deployment QoL --- deploy/deploy.sh | 2 +- deploy/deploy.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.2