Please add instance group under resource awx_job_template
Closed this issue · 4 comments
Sujishv commented
Hi,
Can you add a option to select instance group while creating awx templates
Thanks
Sujish
ilijamt commented
Hi, Yeah, this seems like it's an extra call after you create a Job template. It will be better if it’s just a new resource to assign it. I'll take care of it this week.
ilijamt commented
@Sujishv can you test now? I've added a resource to associate the IDs. Here is an example.
resource "awx_job_template_associate_instance_group" "ig" {
instance_group_id = awx_instance_group.ig.id
job_template_id = awx_job_template.instance_group.id
}
New release is up
Sujishv commented
Thanks it s working, one doubt why cant we cant directly under resource awx_job_template ?
ilijamt commented
It's a separate call under the AWX API, it's not part of the creation of a job template.