How can I avoid characters in Ansible lineinfile module?
Here is the line I want to insert on the server:
EMAIL=' hi@demo.com ' # Server notification email address enter only 1 address
But when I try to do the following, Ansible refuses to parse it due to YAML errors:
line="EMAIL='{{ email_address }}' # Server notification email address enter only 1 address"
I guess this is because I have a strange combination of double quotes, single quotes, the same character and the pound symbol.
source share