File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ RUN dnf install python3.9 -y
44RUN dnf install python3-pip -y
55RUN pip3 install pip --upgrade
66RUN pip3 install ansible-core
7+ RUN ansible-galaxy collection install awx.awx
78RUN chmod +x /entrypoint.sh
89ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 2121
2222echo " 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+
2445echo " END OF AAP - Automation controller Github Action"
You can’t perform that action at this time.
0 commit comments