Archive of posts from February 2024

  • Solution: Changing yaml files in ansible git repo with python

    i 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 ansible

    process 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 json

    ansible tasks to record json output and set some value to an ansible fact.