ansible ssh debug, copy step for private key, verbose ssh connection check
All checks were successful
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 6m52s

This commit is contained in:
Mike Holloway 2025-01-07 19:22:15 -05:00
parent 08ea840c99
commit a12732a7b9

View File

@ -11,12 +11,17 @@
linode: {} linode: {}
tasks: tasks:
- name: ssh key setup
copy:
content: |
{{ lookup('env', 'ACT_RUNNER_DEPLOY_KEY') }}
dest: "~/.ssh/id_ed25519"
- name: Confirm we can reach - name: Confirm we can reach
command: command:
cmd: | cmd: |
echo {{ lookup('env', 'ACT_RUNNER_DEPLOY_KEY') }} > ~/.ssh/id_ed25519
ssh-add ~/.ssh/id_ed25519 ssh-add ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=accept-new -T root@{{ lookup('env', 'TARGET_IP_ADDRESS') }} ssh -vv -o StrictHostKeyChecking=accept-new -T root@{{ lookup('env', 'TARGET_IP_ADDRESS') }}
retries: 12 retries: 12
delay: 10 delay: 10
register: isping register: isping