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:
@@ -7,7 +7,7 @@ runs:
|
|||||||
- name: Setup OpenTofu
|
- name: Setup OpenTofu
|
||||||
uses: opentofu/setup-opentofu@v1
|
uses: opentofu/setup-opentofu@v1
|
||||||
with:
|
with:
|
||||||
terraform_version: 1.9.1
|
tofu_version: 1.9.1
|
||||||
|
|
||||||
- name: Install required python packages
|
- name: Install required python packages
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
||||||
run: |
|
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
|
- name: Test kubectl get nodes
|
||||||
run: |
|
run: |
|
||||||
@@ -67,6 +67,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tofu --version
|
tofu --version
|
||||||
|
|
||||||
- name: Show remote host info
|
- name: Check remote host info is valid
|
||||||
run: |
|
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