Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just started using Pyinfra to wrangle a bunch of servers and it is a breath of fresh air compared to Ansible. I moved all of my server OS installs to Fedora CoreOS which doesn't ship with Python in the OS and since Pyinfra doesn't need Python on the host node I can kick off tasks in bulk to do server things. It is great. I cannot wait to see where the Pyinfra project goes.

On a side note, one of the most hacky things I came up with to get Ansible working on Fedora CoreOS was to bind mount a container rootfs that had python 3 and then symlink it into the right spots. You can of course add Python in with rpm-ostree if you want but I wanted to avoid layering packages at the time. I wasn't proud of it. But it worked.

https://github.com/forem/selfhost/blob/main/playbooks/templa...



Doesn’t IBM/Red Hat own Ansible and Fedora CoreOS? I would think they would mix together perfectly.


> since Pyinfra doesn't need Python on the host node I can kick off tasks in bulk to do server things.

And you can do this with Ansible, too. Check out the raw module/command.


I am aware of the raw module. The stuff I was doing with Ansible and Fedora CoreOS required more than just that module.


Couldn't you use the raw module to get Python into place and then use the rest of Ansible's feature set after that?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: