Salta al contenuto principale


Simple Web UI for infra management with Ansible playbooks polemarch.org (github.com/vstconsulting/polem…) -- awx light? :-)
in reply to JP Mens

Interesting. Just a first impression here but they seem to be using subprocess and Popen to run Ansible. Which is a red flag imho because Ansible lib already has all you need to run Ansible from another software as a library.

Instead they've opted to execute subprocesses with Ansible. This is prone to errors, limited, slow and it also shows a potential lack of understanding of Ansible internals.

in reply to Stefan Midjich ꙮ҄

I'd only glanced at the shiny presentation; thanks for the heads up.
in reply to JP Mens

FWIW, I've just been directed at github.com/ansible-semaphore/s… (but have also not looked closer; I'll gladly listen to your comments. :-) )
in reply to JP Mens

Yet another case of just running the ansible commands.

github.com/ansible-semaphore/s…

A decent implementation is basically the design of AWX. Use Ansible lib to execute plays, use Ansible callback plugin to process the output and do all this in async jobs like rq or celery for example. Anything else is just a poor man's Ansible UI.

in reply to Stefan Midjich ꙮ҄

it seems nobody wants to integrate Ansible Runner which I looked at a while back jpmens.net/2020/02/28/dial-a-f…
in reply to JP Mens

Why oh why does no one use the official ansible library to run Ansible plays?!

github.com/ansible/ansible-run…

in reply to JP Mens

This is making me want to write my own UI, with blackjack and ansible library!
Unknown parent

Elena ``of Valhalla''
that's also what I saw when I tried to write something that used ansible, and the exact reason why I decided to run the ansible command instead.
Unknown parent

Elena ``of Valhalla''

ansible was installed systemwide, and sometimes there is a need to install a more recent version than the one in debian stable to be able to use their features.

Also, fixing versions in requirements.txt is pretty bad from a security point of view and is better avoided.

Anyway, if the authors of a library recommend not to use that library, I tend to read that as a strong hint that things will break in horribly to debug ways, and stay. away. from. it.

Questo sito utilizza cookie per riconosce gli utenti loggati e quelli che tornano a visitare. Proseguendo la navigazione su questo sito, accetti l'utilizzo di questi cookie.