refactor: перейти на ansible.posix.authorized_key, очищать ключ раннера и поддержать внешние секреты
This commit is contained in:
1 parent
7ff2b00d27
commit
69e098415b
4 files changed
+12
-11
No files matched your search
@@ -47,8 +47,10 @@ jobs:
|
||||
install -d -m 700 "${HOME}/.ssh"
|
||||
printf '%s\n' "${RUNNER_SSH_KEY}" > "${HOME}/.ssh/id_ed25519"
|
||||
chmod 600 "${HOME}/.ssh/id_ed25519"
|
||||
trap 'rm -f "${HOME}/.ssh/id_ed25519"' EXIT
|
||||
|
||||
cd "${HOME}/homelab-infra"
|
||||
ansible-galaxy collection install -r requirements.yml
|
||||
|
||||
ansible-playbook playbooks/site.yml \
|
||||
-i inventories/prod/hosts.yml \
|
||||
|
||||
Reference in new issue
Block a user