community.general
community.general copied to clipboard
nmcli: option dns4_ignore_auto not working
Summary
I was using nmcli module when I detect that one of the options that is already documented, is not working. The option is here: https://docs.ansible.com/ansible/latest/collections/community/general/nmcli_module.html#parameter-dns4_ignore_auto
But when I tried to use it on my playbook I got the following error:
fatal: [node1]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (nmcli) module: dns4_ignore_auto Supported parameters include: ageingtime, arp_interval, arp_ip_target, autoconnect, conn_name, dhcp_client_id, dns4, dns4_search, dns6, dns6_search, downdelay, egress, flags, forwarddelay, gw4, gw6, hairpin, hellotime, ifname, ingress, ip4, ip6, ip_tunnel_dev, ip_tunnel_local, ip_tunnel_remote, mac, master, maxage, miimon, mode, mtu, path_cost, primary, priority, slavepriority, state, stp, type, updelay, vlandev, vlanid, vxlan_id, vxlan_local, vxlan_remote"}
I'm using version 5.3.0 from community.general as you can see
ok: [node1] => {
"msg": "community.general version 5.3.0"
}
Issue Type
Bug Report
Component Name
nmcli
Ansible Version
$ ansible --version
ansible 2.9.13
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/isilvera/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/isilvera/.local/lib/python3.10/site-packages/ansible
executable location = /home/isilvera/.local/bin/ansible
python version = 3.10.5 (main, Jun 9 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)]
Community.general Version
$ ansible-galaxy collection list community.general
Configuration
$ ansible-config dump --only-changed
OS / Environment
Fedora 35
Steps to Reproduce
nmcli:
conn_name: "System ens3"
type: ethernet
dns4:
- 8.8.8.8
dns4_ignore_auto: true
state: present
notify: NetworkManager Restart
Expected Results
Ignore ipv4 auto DNS should be set to true
Actual Results
fatal: [node1]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (nmcli) module: dns4_ignore_auto Supported parameters include: ageingtime, arp_interval, arp_ip_target, autoconnect, conn_name, dhcp_client_id, dns4, dns4_search, dns6, dns6_search, downdelay, egress, flags, forwarddelay, gw4, gw6, hairpin, hellotime, ifname, ingress, ip4, ip6, ip_tunnel_dev, ip_tunnel_local, ip_tunnel_remote, mac, master, maxage, miimon, mode, mtu, path_cost, primary, priority, slavepriority, state, stp, type, updelay, vlandev, vlanid, vxlan_id, vxlan_local, vxlan_remote"}
Code of Conduct
- [X] I agree to follow the Ansible Code of Conduct
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @alcamie101 click here for bot help
Since you are using Ansible 2.9 (which is EOL btw, please upgrade to a newer version!) and you are not using a FQCN to call the module, you are very likely using the module nmcli
included with Ansible 2.9, and not the one from community.general.
Also please note that community.general 5.3.0 does not support Ansible 2.9 anymore.
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.