On 15/10/2021 10:18, Vincent Rubiolo wrote:
> A search on this mailing list archives got me one hit[1] but no
> definitive answer other than using awx-cli to create the template. I
> got nothing scouring the open Github issues.
>
> Is such a scheme supported? It looks strange to me it is not. Passing
> variables via a file is standard Ansible practice IMHO and using
> individual --extra-vars does not scale (our var file contains 100+ of
> them). I might have overlooked something hence this question.
If not using the cli tool, how would you intend to get the file into the
system?
We use the awx API from a different internal tool that generates our
extra_vars as a YAML document, based on collected requirements and
applies it as the "variables" field of a job template that has "prompt
on launch" for that field. You definitely can push hundreds of vars this
way - we do that. I assume this is what the cli tool is doing in the
background too.