Subject: [ansible-project] How configure Tower Template to use Dynamic Inventory Script.


dis you create an inventory and added a source that that gets the hosts? then on your job template there's an inventory option to pick.

Jonathan Lozada De La Matta on mobile

________________________________
From: [EMAIL PROTECTED] on behalf of Flavio Gobber <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2019 8:19 AM
To: Ansible Project
Subject: Re: [ansible-project] How configure Tower Template to use Dynamic Inventory Script.

well, I have added my script to "Inventory Script", but now, how can I use this script/Inventory in may "Template" for schedule a Playbook ?.
Thank you

Flavio Gobber

On Thursday, May 23, 2019 at 2:05:38 PM UTC+2, Jonathan Lozada De La Matta wrote:
you can create a custom inventory script https://docs.ansible.com/ansible-tower/latest/html/administration/custom_inventory_script.html

On Thu, May 23, 2019 at 6:52 AM Flavio Gobber <[EMAIL PROTECTED]> wrote:
Hello Ansible Team,

I have written a Python script "inv-sched.py" which generates a JSON format inventory. This script is working using the command line ansible, with ansible command and ansible-playbook.
Now I want to use this script through Tower manager, how can I configure a Template to use it ?.

Thank you for help.

Best regards.

Flavio Gobber
--
To post to this group, send email to [EMAIL PROTECTED].
--

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Automation Practice

Senior Automation Consultant & Automation CoP Manager

Red Hat <https://www.redhat.com>

@redhatjobs <https://twitter.com/redhatjobs>   redhatjobs <https://www.facebook.com/redhatjobs> @redhatjobs <https://instagram.com/redhatjobs>
[https://lh6.googleusercontent.com/proxy/UGgggm-Qv8HCBmBAJs-lZGZTAdEOMeTa37ZBUHPlLVW7hdVFRfDe5iqS_mUUBqSnSpqERkPSmvIRIm8c1ejv2CmmYdK8KFyFN4wz7tjOFNxIXaXF7PMXfsyjCnGmvGGqgefLmj3HiCdLv5uqZZSfbZkHB-JzE8rgM7qsH-y1_F3dKj-MgVMpqnE=w5000-h5000]<https://www.redhat.com>

--
To post to this group, send email to [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>.

--
To post to this group, send email to [EMAIL PROTECTED].