File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 7171 echo "=== Testing SSH Connection ==="
7272 ssh -i vockey.pem -o StrictHostKeyChecking=no ubuntu@${{ steps.terraform.outputs.public_ip }} "echo 'SSH connection successful'"
7373 echo "=== Running Ansible Playbook ==="
74- ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i inventory.yml playbooks/deploy.yml -vvv --extra-vars "ansible_host=${{ steps.terraform.outputs.public_ip }}"
74+ ANSIBLE_HOST_KEY_CHECKING=False ANSIBLE_DEBUG=1 ansible-playbook -i inventory.yml playbooks/deploy.yml -vvv --extra-vars "ansible_host=${{ steps.terraform.outputs.public_ip }}"
Original file line number Diff line number Diff line change 44 ansible_host : " {{ ansible_host }}"
55 ansible_user : ubuntu
66 ansible_ssh_private_key_file : vockey.pem
7- ansible_ssh_common_args : " -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
7+ ansible_ssh_common_args : " -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -o TCPKeepAlive=yes "
You can’t perform that action at this time.
0 commit comments