Hello Jonathan,
thank you for help, now I am able to use a Python script to create an
inventory. Now I am not able to use a custom Python class inside the
script. I have write a python class "class ScheduleInventory" into a file
.py, this class receive in input two parameter. Then into Tower I have
write this script:
#!/usr/bin/env python
from sched_inv import ScheduleInventory
ScheduleInventory("schedwu.ini","Download & Install Update & Reboot - 2o
gruppo")
If I run this script it works well, but not in Tower, I think the origin is
because the class is not in the right python lib folder, where i need to
put the "class ScheduleInventory" into a file .py ?.
Thank you for help.
Best regards.
Flavio Gobber
en into the
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
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4ee68762-4b36-4ca9-9684-8ef79bbbc77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.