ansible ssh debug, copy step for private key, verbose ssh connection check
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 6m52s
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 6m52s
This commit is contained in:
1 parent
08ea840c99
commit
a12732a7b9
1 file changed
+7
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user