Hmmm.... I am trying it this way... and am really close. I just don't know
how to properly reference variables in a regexp statement within ansible:
- name: TEST
replace:
path: "{{ net_path }}{{ item }}"
regexp: "^DNS(?!.*(?:10.10.10.1[12])).*"
with_items: "{{ ifcfg_list.stdout_lines }}"
I want to replace 10.10.10.1[12] with the variables dns1 and dns2
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9308bf8f-96d0-463d-b869-6598c1e514c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.