seems like the changes should be made to /etc/NetworkManager/NetworkManager.conf, /etc/NetworkManager/conf.d/, or the connection files.
This is the code I'm using:
- include_role:
name: redhat.rhel_system_roles.network
vars:
network_allow_restart: true
network_state:
dns-resolver:
config:
search:
- mycompany.com
server:
- "{{ nameserver1 }}"
- "{{ nameserver2 }}"
options:
- timeout:1
- attempts:1