Hello!
How do you create & modify a file from within a custom module?
I created a custom module that transfers some functionality from a python3 program that I wrote. Part of the program modifies a file by using the open() method.
This method does not seem to work when initiating the pieced of code from my ansible-playbook runs.Although, the code runs without being initiated via an ansible module.
How do I use the open() method within a custom ansible module?
&
If I can’t use the open() method for files what else can I use to open, write, and modify files within a module?