fix: Correct terraform_version to tofu_version in setup-opentofu-env action and update ansible command to ping public hosts
This commit is contained in:
@@ -53,7 +53,7 @@ jobs:
|
||||
env:
|
||||
ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
||||
run: |
|
||||
ansible -i inventory/hosts -u ${{ secrets.ANSIBLE_USER }} -m ping all
|
||||
ansible -i inventory/hosts -u ${{ secrets.ANSIBLE_USER }} -m ping public
|
||||
|
||||
- name: Test kubectl get nodes
|
||||
run: |
|
||||
@@ -67,6 +67,9 @@ jobs:
|
||||
run: |
|
||||
tofu --version
|
||||
|
||||
- name: Show remote host info
|
||||
- name: Check remote host info is valid
|
||||
run: |
|
||||
echo "System ID: ${{ steps.get-host-info.outputs.system-id }}"
|
||||
if [ -z "${{ steps.get-host-info.outputs.system-id }}" ]; then
|
||||
echo "No system ID found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user