Hello
I’m using Ansible to push config to some Cisco routers and have hit an issue, I need to send a ? as part of a URL for dynamic DNS, but entering a question marks shows the help. If I manually use the console I can enter Ctrl + V to escape the ? but I can’t get it working with Ansible - I’ve tried sending escaped ASCII etc. Any ideas? I’ve tried with and without the curly braces and a few other permutations but it writes ^V to the config which then doesn’t work.
My config looks something like this:
- name: Dynamic DNS Global cisco.ios.ios_config:
lines: - HTTP
- add {{ ddns_url_scheme }}{{ ddns_username }}:{{ ddns_password }}@{{ ddns_url }}/update{{ ‘\x16’ }}{{ ‘\x3f’ }}hostname=&myip=
- interval maximum 0 1 0 0
- interval minimum 0 0 10 0
parents: [ ‘ip ddns update method ddns’, ‘HTTP’]
Thanks