Use json and code and a job template to create template, survey and survey spec

From this link: https://github.com/network-automation/toolkit
There is an excellent method to create a survey and a survey spec that allows selecting a file as a choice in the survey. It is baseed lon a backup.j2 file which contains JSON and bracketed code.

I have triedc this using the api and AWX ver 17, and AWX-OPERATOR based on a single kubernetes pod.

I can create a job template via the API, but I cannot create a survey with a survey spec using the json code - this workd for Ansible controller, but so far no dice for AWX ver 17 or the kubernetes based version

I can look at the code on the github site, but it will not implement the code from a playbook. It looks like the playbook that creates the job template and the survey - cannot access the spi from within ansible

any ideas??

ewholz

Hi,

Are you using a collection to achieve this? I’m not sure what your playbook looks like but it sounds like a config issue based on the behavior.
AWX Team