ansible ssh debug, checking accept-new option for pre-inventory reachability test, printing full isping object
All checks were successful
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 4m59s

This commit is contained in:
Mike Holloway 2025-01-07 19:12:16 -05:00
parent 4430880f8f
commit 08ea840c99

View File

@ -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