When storing randomly generated passwords in an Ansible vault, I have no problems unless the password contains a / (slash, forward slash)
According to Yaml Spec 1.2, when looking at printable ascii characters, I should escape double quote, backslash and forward slash with a backslash.
I've tried this, but I get a parse error.
Line from vault file
test: "a<>?x\/x.,:;'-=_+b*()c&d{}\"e^f[]!@g%h\\i$j"
Error:
fatal: [127.0.0.1]: FAILED! => {"failed": true, "msg": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in 'False': line 14, column 13, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\n(could not open file to display line)"}