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


after you add the inventory script, you need to create an inventory. Once you create an inventory, you need to create a source. Please look at the documentation.

Jonathan Lozada De La Matta on mobile

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

Hello Jonathan,

I would show you with two screenshot what I have done and what I see on template page.
[InventoryScreenCapture.PNG]

[SelectInventoryScreenCapture.PNG]

The Inventory selection on Template configuration doesn't show me to choose the script previus defined.

With the script showed above and ansible CLI the inventory works well.

Thank you

Beest regards

Flavio Gobber
On Thursday, May 23, 2019 at 12:52:16 PM UTC+2, Flavio Gobber 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]<mailto:[EMAIL PROTECTED]>.

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