You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Trigger AWX and Ansible Automation Platform Controller resources
v21.10.2
This Github action aims to interact with AWX or Tower servers.
It connects to an AWX or Tower server and launches a job or workflow_job template or updates project.
See action.yml
awx-examples:
runs-on: ubuntu-latest
steps:
- name: "Test AWX: Simple job template"
uses: fitbeard/action-trigger-awx@v1
with:
tower_url: ${{ secrets.TOWER_HOST }}
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }}
resource_type: job_template
resource_name: actions-awxkit-test
- name: "Test AWX: Simple workflow template"
uses: fitbeard/action-trigger-awx@v1
with:
tower_url: ${{ secrets.TOWER_HOST }}
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }}
resource_type: workflow_job_template
resource_name: actions-awxkit-workflow-test
- name: "Test AWX: Project update"
uses: fitbeard/action-trigger-awx@v1
with:
tower_url: ${{ secrets.TOWER_HOST }}
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }}
resource_type: project
resource_name: ansible-project
- name: "Test AWX: Random options job template 1"
uses: fitbeard/action-trigger-awx@v1
with:
tower_url: ${{ secrets.TOWER_HOST }}
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }}
resource_type: job_template
resource_name: actions-awxkit-test3
limit: "localhost-0*"
extra_vars: '{"test": 1, "test2": "this variable"}'
timeout: 300
- name: "Test AWX: Random options job template 2"
uses: fitbeard/action-trigger-awx@v1
with:
tower_url: ${{ secrets.TOWER_HOST }}
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }}
resource_type: job_template
resource_name: actions-awxkit-test3
limit: "localhost-0*"
extra_vars: '{"test": 1, "test2": "this variable"}'
branch: "test/awxkit_action_poc"
inventory: localhost-awxkit-test
tags: "1,two,o_0"
skip_tags: "nonsense"
- name: "Test AWX: Simple job template without waiting"
uses: fitbeard/action-trigger-awx@v1
with:
tower_url: ${{ secrets.TOWER_HOST }}
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }}
resource_type: job_template
resource_name: actions-awxkit-test2
monitor: "false"