Closed olifur closed 2 years ago
After reviewing the source code I found the solution myself
- name: insert simple key, value
yedit:
src: /tmp/xxx.yaml
key:
lab01.hosts
value:
horst:
'mydomainname.abc.it.de'
I close the issue for now.
Hi kwoodson,
I have the following problem when my keys contain dots such as in domain names
My target yaml structure I want to write:
Now using quotes I try to escape the dots in the domain name
this does not write anything into the file.
Other combinations of escaping dots in yaml do not work either for me, e.g
If I leave the dots and quotes, it writes content to the file
Is there a way to use dots in keys (escape) with your module?
Thanks in advance, Oliver