Skip to content

Commit 9611785

Browse files
committed
sync
1 parent c3e72c8 commit 9611785

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
controller_username: ${{ secrets.CONTROLLER_USERNAME }}
3030
controller_password: ${{ secrets.CONTROLLER_PASSWORD }}
3131
job_template: "AWS - ec2 enforce owner tag"
32-
extra_vars: "your_region: us-west-1"
32+
extra_vars: "your_region=us-west-1"
3333
validate_certs: false

entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ echo "AAP - Automation controller Github Action"
44

55
echo "CONTROLLER_HOST is $CONTROLLER_HOST"
66
echo "JOB_TEMPLATE being executed $JOB_TEMPLATE"
7+
echo "EXTRA_VARS is set to $EXTRA_VARS"
78
echo "CONTROLLER_VERIFY_SSL is set to $CONTROLLER_VERIFY_SSL"
89

910
if [ -z "$CONTROLLER_HOST" ]; then
@@ -44,6 +45,13 @@ tee playbook.yml << EOF
4445
job_template_var: "$JOB_TEMPLATE"
4546
workflow_template_var: "$WORKFLOW_TEMPLATE"
4647
project_var: "$PROJECT"
48+
extra_vars: "$EXTRA_VARS"
49+
50+
- name: print out extra_vars
51+
debug:
52+
msg:
53+
- "extra vars are {{ extra_vars }}"
54+
- "extra vars are {{ extra_vars }}"
4755
4856
- name: Launch a job template with extra_vars on remote controller instance
4957
when: job_template_var|length > 0

0 commit comments

Comments
 (0)