Hi Mark, I found the following https://relativkreativ.at/articles/how-to-use-ansibles-lineinfile-module-in-a-bulletproof-way very useful when I needed to find a reliable way to edit lines in a configuration file with Ansible tasks.
See if it helps you understand how to use lineinfile in a bulletproof way. Regards, Jinesh -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1d9158d8-f522-42ff-93bf-04f2f0c82712%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.