Archive of posts from May 2023
Solution: Changing yaml files in ansible git repo with pythoni wanted tooling to make changes to an ansible git repository but found this not as straightforward as i had hoped. this solution takes care of the annoying problem of loading yaml and python writing it back out of its original order and so making the git commits hard to...
Building docker images with ansibleprocess to build docker image from ansible playbook. this involves creating a base image with ansible installed. with this we add the ansible repo and then configure the host with ansible playbook and tag it.
setting ansible facts from jsonansible tasks to record json output and set some value to an ansible fact.