ios_template making changes when router config already exists

I am using ios_template to deploy some DMVPN tunnels. For some reason it is not recognising two commands that already exist on the router - ip nhrp map a.a.a.a b.b.b.b and ip nhrp nhs a.a.a.a. I’m not really sure what is unique about these two commands to produce this affect, and it isn’t currently stopping me from doing anything. It just throws a spanner in the idea of being idempotent. My guess would be a problem with the underlying regex doing the screen scraping.

Running the playbook with -vvv option produces this output (cleaned up):

“src”:
!
interface Tunnel10
description primary tunnel
ip vrf forwarding VRF-A
ip address 10.0.0.11 255.255.240.0
no ip redirects
ip mtu 1400
ip nhrp authentication 10
ip nhrp map multicast 172.16.0.11
ip nhrp map 10.0.0.1 172.16.0.11
ip nhrp network-id 10
ip nhrp holdtime 360
ip nhrp nhs 10.0.0.1
ip nhrp shortcut
ip tcp adjust-mss 1360
load-interval 30
delay 600
qos pre-classify
tunnel source Loopback1
tunnel mode gre multipoint
tunnel key 10
end

“updates”:
interface Tunnel10
ip nhrp map 10.0.0.1 172.16.0.11
ip nhrp ohs 10.0.0.1

Hi Luke, We don’t actually screen scrape the configuration in this case. Can you post the full playbook via a gist? (or at least the full task?)

Link to playbook

Let me know if you need more info.

When you say it’s not screen scraping - how are you getting the running config?

Hi Peter,

Is there any follow up on this? Do you need anything further?

ahh thanks for the reminder… will take a look at it this week yet