by polski-g · 2y ago · 0 comments
A few years ago, I found a library that lets you utilize Ansible's tasks in raw Python, without the huge hassle of using the Ansible Python API. I cannot find it again however. But PyInfra looks great.
Not trying to be rude ofc, I'm sure you considered it and have a good reason – just curious as of what it is. An incredible project you put there, nonetheless:)
Seems they still kinda discourage it but do have examples at least.
https://docs.ansible.com/ansible/latest/dev_guide/developing...
Is there a reason this isn't an option for you?