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