ansible ssh debug, checking accept-new option for pre-inventory reachability test, printing full isping object
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 4m59s
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 4m59s
This commit is contained in:
1 parent
4430880f8f
commit
08ea840c99
1 file changed
+2
-2
@@ -16,7 +16,7 @@
|
||||
cmd: |
|
||||
echo {{ lookup('env', 'ACT_RUNNER_DEPLOY_KEY') }} > ~/.ssh/id_ed25519
|
||||
ssh-add ~/.ssh/id_ed25519
|
||||
ssh -o StrictHostKeyChecking=no -T root@{{ lookup('env', 'TARGET_IP_ADDRESS') }}
|
||||
ssh -o StrictHostKeyChecking=accept-new -T root@{{ lookup('env', 'TARGET_IP_ADDRESS') }}
|
||||
retries: 12
|
||||
delay: 10
|
||||
register: isping
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
- debug:
|
||||
msg: |
|
||||
isping.failed: "{{ isping.failed }}"
|
||||
{{ isping }}
|
||||
|
||||
- name: Fail if instance is not running
|
||||
when: isping.failed
|
||||
|
||||
Reference in new issue
Block a user