Thx Kai.

I tried it, and the regexp test shows that the regexp is good, but it 
doesn't replace the line.  It just says ok, and continues on.  Here is my 
slightly modified variant also doing the same thing (or to be more 
specific, not doing anything):

    regexp: 'nameservers:\n.*addresses:.*\[(.*)\]'
    line: '\1 {{ dns1 }}, {{ dns2 }}'

Result:

TASK [dns_update : Update DNS servers] 
***************************************************************************************************************************************************************************************************
ok: [ansible-ub18]


File remains the same

-- 
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/83eede4c-3828-444a-8f2d-41eacf46fb34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to