I have this snippet:-
- name: nmcli eth0 ipv4 dns-search "subdomain.domain.tld"
community.general.nmcli:
conn_name: eth0
dns4_search: subdomain.domain.tld
state: present
which works find on my RHEL9 target client, but the RHEL8 target client reports:-
fatal: [hostname]: FAILED! => {"changed": false, "msg": "Error: bad connection type: 'None' not among [6lowpan, 802-11-olpc-mesh (olpc-mesh), 802-11-wireless (wifi), 802-3-ethernet (ethernet), adsl, bluetooth, bond, bridge, cdma, dummy, generic, gsm, infiniband, ip-tunnel, macsec, macvlan, ovs-bridge, ovs-dpdk, ovs-interface, ovs-patch, ovs-port, pppoe, team, tun, veth, vlan, vpn, vrf, vxlan, wifi-p2p, wimax, wireguard, wpan, bond-slave, bridge-slave, team-slave]\n", "name": "eth0", "rc": 2}
eth0 is present, and I can configure the ipv4 dns-search manually on the target machine OK.
I have destroyed and redeployed the target VM but still the same.
any ideas, similar experiences and solutions ?
[dunno why, but the indents have been lost on my snippet, the lines 3-5 should be further indented but have been lost in the paste and I can’t manually indent them here, but indents are there in my yaml]