-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Github action for AWX and Ansible Tower resource triggering | ||
# Github action for AWX and Ansible Automation Platform Controller resource triggering | ||
|
||
[![main](https://github.com/fitbeard/action-trigger-awx/workflows/main/badge.svg)](https://github.com/fitbeard/action-trigger-awx/actions?query=workflow%3Amain) | ||
|
||
This Github action aims to interact with AWX or Tower servers. | ||
This Github action aims to interact with AWX or Ansible Automation Platform Controller. | ||
|
||
It connects to an AWX or Tower server and launches a job or workflow_job template or updates project. | ||
It connects to an AWX or Ansible Automation Platform Controller server and launches a job or workflow_job template or updates project. | ||
|
||
> **Note** | ||
> | ||
|
@@ -23,49 +23,49 @@ See [action.yml](action.yml) | |
- name: "Test AWX: Simple job template" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: job_template | ||
resource_name: actions-awxkit-test | ||
|
||
- name: "Test AWX: Simple job template - specify credentials" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: job_template | ||
resource_name: actions-awxkit-test | ||
credentials: "test-credential" | ||
|
||
- name: "Test AWX: Simple workflow template" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: workflow_job_template | ||
resource_name: actions-awxkit-workflow-test | ||
|
||
- name: "Test AWX: Project update" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: project | ||
resource_name: ansible-project | ||
|
||
- name: "Test AWX: Inventory Source update" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: inventory_source | ||
resource_name: inventory-source-name | ||
|
||
- name: "Test AWX: Random options job template 1" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: job_template | ||
resource_name: actions-awxkit-test3 | ||
limit: "localhost-0*" | ||
|
@@ -75,8 +75,8 @@ See [action.yml](action.yml) | |
- name: "Test AWX: Random options job template 2" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: job_template | ||
resource_name: actions-awxkit-test3 | ||
limit: "localhost-0*" | ||
|
@@ -89,8 +89,8 @@ See [action.yml](action.yml) | |
- name: "Test AWX: Simple job template without waiting" | ||
uses: fitbeard/[email protected] | ||
with: | ||
tower_url: ${{ secrets.TOWER_HOST }} | ||
tower_token: ${{ secrets.TOWER_OAUTH_TOKEN }} | ||
controller_host: ${{ secrets.CONTROLLER_HOST }} | ||
controller_oauth_token: ${{ secrets.CONTROLLER_OAUTH_TOKEN }} | ||
resource_type: job_template | ||
resource_name: actions-awxkit-test2 | ||
monitor: "false" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters