Skip to content

Commit e17a16b

Browse files
committed
syncing
1 parent 505d44c commit e17a16b

File tree

3 files changed

+50
-16
lines changed

3 files changed

+50
-16
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ on:
1717

1818

1919
jobs:
20-
automation_controller_job:
21-
# runs-on: ubuntu-latest
22-
# name: Kick off Automation controller job
23-
# steps:
24-
# - name: Load the ansible-cloud action
25-
# id: controller_job
26-
# uses: ansible-cloud/[email protected]
27-
# with:
28-
# controller_host: ${{ secrets.CONTROLLER_HOST }}
29-
# controller_username: ${{ secrets.CONTROLLER_USERNAME }}
30-
# controller_password: ${{ secrets.CONTROLLER_PASSWORD }}
31-
# job_template: "AWS - ec2 enforce owner tag"
32-
# extra_vars: "your_region=us-west-1"
33-
# validate_certs: false
34-
# workshop_job_provision:
20+
# automation_controller_job:
21+
# runs-on: ubuntu-latest
22+
# name: Kick off Automation controller job
23+
# steps:
24+
# - name: Load the ansible-cloud action
25+
# id: controller_job
26+
# uses: ansible-cloud/[email protected]
27+
# with:
28+
# controller_host: ${{ secrets.CONTROLLER_HOST }}
29+
# controller_username: ${{ secrets.CONTROLLER_USERNAME }}
30+
# controller_password: ${{ secrets.CONTROLLER_PASSWORD }}
31+
# job_template: "AWS - ec2 enforce owner tag"
32+
# extra_vars: "your_region=us-west-1"
33+
# validate_certs: false
34+
workshop_job_provision:
3535
runs-on: ubuntu-latest
3636
name: Test provision workshop and teardown
3737
steps:
@@ -53,6 +53,6 @@ jobs:
5353
controller_host: ${{ secrets.CONTROLLER_HOST }}
5454
controller_username: ${{ secrets.CONTROLLER_USERNAME }}
5555
controller_password: ${{ secrets.CONTROLLER_PASSWORD }}
56-
job_template: "Teardown Workshop"
56+
job_template: "Workshop teardown Job"
5757
extra_vars: "ec2_name_prefix=github-action-test-seanjul15"
5858
validate_certs: false

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
11
# aap_controller_action
22
Github Action for Ansible Automation Platform - Automation controller
3+
4+
5+
6+
## Example of kicking off an automation job on Automation controller
7+
8+
```
9+
jobs:
10+
automation_controller_job:
11+
runs-on: ubuntu-latest
12+
name: Kick off Automation controller job
13+
steps:
14+
- name: Load the ansible-cloud action
15+
id: controller_job
16+
uses: ansible-cloud/[email protected]
17+
with:
18+
controller_host: ${{ secrets.CONTROLLER_HOST }}
19+
controller_username: ${{ secrets.CONTROLLER_USERNAME }}
20+
controller_password: ${{ secrets.CONTROLLER_PASSWORD }}
21+
job_template: "AWS - ec2 enforce owner tag"
22+
extra_vars: "your_region=us-west-1"
23+
validate_certs: false
24+
```
25+
26+
## Setting up your repo to work with this action
27+
28+
You need to setup 3 (three) secrets:
29+
30+
- CONTROLLER_HOST - this is the DNS name or IP address of your Automation controller.
31+
- CONTROLLER_USERNAME - the username to access Automation controller
32+
- CONTROLLER_PASSWORD - the password to access Automation controller
33+
34+
Example screenshot of Github Secrets
35+
36+
![picture of secrests](repo_secrets.png)

repo_secrets.png

108 KB
Loading

0 commit comments

Comments
 (0)