Hi,
Is there any way using junos modules in ansible to send “replace pattern” command to Juniper device?
I stucked on this.
Any help would be greatly appreciated!
Michal
Hi,
Is there any way using junos modules in ansible to send “replace pattern” command to Juniper device?
I stucked on this.
Any help would be greatly appreciated!
Michal
Juniper Tech Library says it should look like this:
<rpc>
<load-configuration>
<!-- replace a pattern globally -->
<configuration replace-pattern="" with="" [upto=""]>
</configuration>
</load-configuration>
</rpc>
But I have no idea how to format this kind of rpc request to junos_rc module:
The problem is, I think, that there are one tag nested in onother- and .
Itried this way but It gives mi an error:
I tried also this way and it gives me “OK” response but it doesn’t change anything in configuration:
Any other idea?
Thanks in advance,
Michal