On Thursday, March 21, 2019 at 2:46:50 PM UTC-6, Kai Stian Olstad wrote:
>
> On 21.03.2019 20:51, John Harmon wrote: 
> > 
> > Thx all.  Those helped.  I now get it to replace, but it replaces my 
> string 
> > and not just my backref.   Not sure what I am doing wrong.  I think that 
> is 
> > just the default behavior of replace.  Can't use quantifiers with 
> negative 
> > look aheads/behinds. 
>
> It will be easier to help if you could show what do have in the file and 
> what is should be after replace. 
>
>
> -- 
> Kai Stian Olstad 
>

I didn't post it so as to not overburden everyone with my issues; however, 
if it isn't a big issue I could use some help as I can't seem to get it 
working.  I am trying to replace the DNS servers, located in the second 
addresses line toward the bottom.

network:
    ethernets:
        enp0s3:
            addresses: [10.10.50.0/24]
            gateway4: 10.10.50.5
            dhcp4: no
            nameservers:
                    addresses: [10.1.2.3, 10.1.2.4]
    version: 2


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e099f225-ecc0-49c8-942e-c3a95569ea17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to