0

I've added a python script to a custom inventory script in Ansible Tower 3.3.0 for generating dynamic inventory.

How do I pass arguments to that python script?

Ruzihm
  • 19,749
  • 5
  • 36
  • 48
Arun G
  • 1
  • 2
  • what kind of arguments are you expecting to pass? – Bruce Becker Nov 07 '18 at 11:59
  • 1
    I would like to understand this as well. I have a custom inventory script and I found how to call custom credentials by using the os.environ.get in the python script. I would like to use the environmental variables inside the script connector to be able to add filters that the python script can pull in. I have attempted to pull them the same way as the custom creds with filters = os.environ.get("filters"). However this is not working. Any Suggestions? Here what I am working from https://stackoverflow.com/questions/52698502/custom-credentials-in-ansible-tower-with-custom-python-script – Jeremy Hobbs Apr 10 '19 at 18:12

0 Answers0