Got it... but if someone has a better way of doing this, I am all ears. I
will add dns through the lineinfile module
Enter code here...- name: TEST
replace:
path: "{{ net_path }}{{ item }}"
regexp: "^DNS(?!.*(?:{{ dns1 }}|{{ dns2 }})).*"
with_items: "{{ ifcfg_list.stdout_lines }}"
--
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/549692bf-e4f8-492a-95da-1bceb44e3a13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.