fix: no gitea_, added private key secret

This commit is contained in:
2025-10-08 20:46:13 -04:00
parent fae0e13de0
commit f4e165921c
3 changed files with 34 additions and 29 deletions

View File

@@ -7,6 +7,7 @@ tasks:
restore: ansible-playbook playbooks/restore.yml {{.CLI_ARGS}}
enter:
cmd: ssh {{.GITEA}}
cmd: ssh -i {{.KEY}} root@{{.IP}}
vars:
GITEA: { sh: cat ./variables.yml | yq -r ".variables.gitea_host" }
KEY: { sh: ansible-vault view vault.yml | yq -r ".secret.private_ssh_key_path" }
IP: { sh: cat dist/terraform_outputs.yml | jq -r ".server_ip.value" }