Module to patch (update) environment variables file with version

There are several great ways to read, write and modify INI files using Ansible, I linked to them in this comment, .ini / .conf / .env file lookup, fliters and modules:

JC INI parsers that can be used with the JC filter :

I’d suggest using these rather than lineinfile.

2 Likes