Skip to content

Commit 7350f67

Browse files
committed
adding more and more
1 parent 826e9b8 commit 7350f67

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ RUN dnf install python3.9 -y
44
RUN dnf install python3-pip -y
55
RUN pip3 install pip --upgrade
66
RUN pip3 install ansible-core
7+
RUN ansible-galaxy collection install awx.awx
78
RUN chmod +x /entrypoint.sh
89
ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,25 @@ fi
2121

2222
echo "JOB_TEMPLATE being executed $JOB_TEMPLATE"
2323

24+
tee playbook.yml << EOF
25+
---
26+
- name: execute autmation job
27+
hosts: localhost
28+
gather_facts: no
29+
30+
tasks:
31+
32+
- name: Launch a job template with extra_vars on remote controller instance
33+
awx.awx.job_launch:
34+
job_template: "$JOB_TEMPLATE"
35+
extra_vars:
36+
var1: "My First Variable"
37+
var2: "My Second Variable"
38+
var3: "My Third Variable"
39+
job_type: run
40+
41+
EOF
42+
43+
cat playbook.yml
44+
2445
echo "END OF AAP - Automation controller Github Action"

0 commit comments

Comments
 (0)