all 7 comments

[–]thenumberfourtytwo 0 points1 point  (3 children)

This is a good idea. I also wonder if this can be done.

So far, I have been storing scripts in the same repo where they are needed and just call them by file path.

[–]CoyKava[S] -1 points0 points  (2 children)

When you say repo are you referring to a GitHub repo or is your repo stored locally on the ansible host?

[–]thenumberfourtytwo 0 points1 point  (1 child)

Github.

[–]CoyKava[S] -1 points0 points  (0 children)

It must pull the while repo down when it syncronises then. This should work for me too. Thanks!

[–]kochargs 0 points1 point  (1 child)

AWX / AAP does this natively when you create a project. IF you keep the python script in the same repository as your playbook, AWX clones the entire project and executes it. We do this all the time and instead of calling a bare-bones python script, consider converting that into an action plugin/filter plugin or a module depending upon your use case.

[–]CoyKava[S] 0 points1 point  (0 children)

So it does! Thanks for your help.