Skip to content

Commit 975e059

Browse files
author
Alan Christie
committed
- Support for Job Template inventory
1 parent ee9fc86 commit 975e059

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ And **JobTemplate** is: -
111111
ask_extra_vars: <bool>
112112
extra_vars: <string>
113113
credentials: [<string>]
114+
inventory: [<string>]
114115
teams: [<string>]
115116
labels: [<string>]
116117

requirements.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
collections:
44
- name: awx.awx
5-
version: 10.0.0
5+
version: 11.2.0

tasks/add-job-template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
awx.awx.tower_job_template:
1111
name: "{{ item.name }}"
1212
job_type: run
13-
inventory: localhost
13+
inventory: "{{ item.inventory|default('localhost', true) }}"
1414
project: "{{ item.project }}"
1515
playbook: "{{ item.playbook }}"
1616
ask_extra_vars: "{{ item.ask_extra_vars|default('no', true)|bool }}"
@@ -21,7 +21,7 @@
2121
awx.awx.tower_job_template:
2222
name: "{{ item.name }}"
2323
job_type: run
24-
inventory: localhost
24+
inventory: "{{ item.inventory|default('localhost', true) }}"
2525
project: "{{ item.project }}"
2626
playbook: "{{ item.playbook }}"
2727
ask_extra_vars: "{{ item.ask_extra_vars|default('no', true)|bool }}"

0 commit comments

Comments
 (0)