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:
2025-05-02 14:46:59 +02:00
parent 596f2b13ba
commit b961de0455
2 changed files with 7 additions and 4 deletions
@@ -7,7 +7,7 @@ runs:
- name: Setup OpenTofu
uses: opentofu/setup-opentofu@v1
with:
terraform_version: 1.9.1
tofu_version: 1.9.1
- name: Install required python packages
shell: bash
+6 -3
View File
@@ -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