Single-quoted strings can contain double-quotes. So instead of
line="something ending with a "double-quoted string""
do this:
line='something ending with a "double-quoted string"'
On 11/10/23 8:33 AM, Dimitri Yioulos wrote:
Good day, all.
I want to add the following line to a file:
_some-name TXT
"aZJACEhonRJiOCL1ZtkKMKnx7U4m5jbSswyClGb6wGk"
I would think I'd use the following:
lineinfile: dest=/somedir/somefile insertafter=EOF
line="_acme-challenge TXT
"aZJACEhonRJiOCL1ZtkKMKnx7U4m5jbSswyClGb6wGk"
However, the quoted string at the end is screwing my up. How do I make
this work? Would ansible.builtin.blockinfile be better? If so, how
would I set that up?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8cb39f61-4616-4be4-861d-60d726e74a96n%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/8cb39f61-4616-4be4-861d-60d726e74a96n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Todd
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0e535c6c-2218-4d6c-9d54-5d3253643ec3%40gmail.com.