top | item 40213558

(no title)

jdoss | 1 year ago

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...

discuss

order

shoggouth|1 year ago

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

movedx|1 year ago

> 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.

jdoss|1 year ago

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