I'll note that the key to using escape sequences within YAML, is for you to use
'
to quote the line, and "
inside for the args. - debug:
msg: '{{ ks_iso_volume_id | regex_replace("\s", "\\x20") }}'
From: https://github.com/ansible/ansible/issues/52868#issuecomment-469287200
Note:
Actual error faced:
ERROR! Syntax Error while loading YAML.
found unknown escape characte
No comments:
Post a Comment