Skip to content

Commit

Permalink
apply credentials on awx
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmellos committed Dec 20, 2023

Verified

This commit was signed with the committer’s verified signature.
lucasmellos Lucas Mellos Carlos
1 parent 2e75696 commit c46cac7
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/ansible/action.yml
Original file line number Diff line number Diff line change
@@ -46,6 +46,9 @@ inputs:
EXTRA_VARS:
description: "Pass extra command line variables to the playbook."
required: false
CREDENTIALS:
description: "Credentials to use for this job."
required: false

runs:
using: "composite"
@@ -67,4 +70,5 @@ runs:
skip_tags: ${{ inputs.SKIP_TAGS }}
monitor: ${{ inputs.MONITOR }}
timeout: ${{ inputs.TIMEOUT }}
credentials: ${{ inputs.CREDENTIALS }}

5 changes: 5 additions & 0 deletions .github/workflows/cd-ansible.yml
Original file line number Diff line number Diff line change
@@ -62,6 +62,10 @@ on:
description: "Pass extra command line variables to the playbook."
required: false
type: string
CREDENTIALS:
description: "Name or ID of the associated credentials."
required: false
type: string
secrets:
AWX_HOST:
description: "AWX or Ansible Tower URL."
@@ -99,6 +103,7 @@ jobs:
TAGS: ${{ inputs.TAGS}}
SKIP_TAGS: ${{ inputs.SKIP_TAGS}}
MONITOR: ${{ inputs.MONITOR}}
CREDENTIALS: ${{ inputs.CREDENTIALS }}
env:
AWX_HOST: ${{ secrets.AWX_HOST }}
AWX_OAUTH_TOKEN: ${{ secrets.AWX_OAUTH_TOKEN }}

0 comments on commit c46cac7

Please sign in to comment.