Minor fix in the action.yml file
This commit is contained in:
@@ -13,7 +13,7 @@ inputs:
|
|||||||
outputs:
|
outputs:
|
||||||
system_id:
|
system_id:
|
||||||
description: "The system ID of the target host"
|
description: "The system ID of the target host"
|
||||||
value: ${{ steps.get-system-id.outputs.stdout }}
|
value: ${{ steps.get-system-id.outputs.system-id }}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@@ -27,4 +27,5 @@ runs:
|
|||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
TARGET_HOST: ${{ inputs.target-host }}
|
TARGET_HOST: ${{ inputs.target-host }}
|
||||||
run: |
|
run: |
|
||||||
ansible -i ansible/inventory/hosts -b -u $ANSIBLE_USER -m shell -a "read_system_id" $TARGET_HOST | tail -1
|
system_id=$(ansible -i ansible/inventory/hosts -b -u $ANSIBLE_USER -m shell -a "read_system_id" $TARGET_HOST | tail -1)
|
||||||
|
echo "::set-output name=system-id::$system_id"
|
||||||
|
|||||||
@@ -44,8 +44,10 @@ jobs:
|
|||||||
ansible-user: ${{ secrets.ANSIBLE_USER }}
|
ansible-user: ${{ secrets.ANSIBLE_USER }}
|
||||||
|
|
||||||
- name: Test ansible
|
- name: Test ansible
|
||||||
|
env:
|
||||||
|
ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
||||||
run: |
|
run: |
|
||||||
ansible -m ping all
|
ansible -i ansible/inventory/hosts -u ${{ secrets.ANSIBLE_USER }} -m ping all
|
||||||
|
|
||||||
- name: Test kubectl get nodes
|
- name: Test kubectl get nodes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user