From b961de0455e35016e35c326e08e085d898040eac Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Fri, 2 May 2025 14:46:59 +0200 Subject: [PATCH] fix: Correct terraform_version to tofu_version in setup-opentofu-env action and update ansible command to ping public hosts --- .github/actions/setup-opentofu-env/action.yml | 2 +- .github/workflows/actions-validate.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-opentofu-env/action.yml b/.github/actions/setup-opentofu-env/action.yml index 1ebb5ae..e575591 100644 --- a/.github/actions/setup-opentofu-env/action.yml +++ b/.github/actions/setup-opentofu-env/action.yml @@ -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 diff --git a/.github/workflows/actions-validate.yml b/.github/workflows/actions-validate.yml index 116c4c0..3df1fcc 100644 --- a/.github/workflows/actions-validate.yml +++ b/.github/workflows/actions-validate.yml @@ -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