-
Notifications
You must be signed in to change notification settings - Fork 1.5k
nmcli dns example does not run #1910
Comments
I'm having the same issue. nmcli docs don't have the comma in between dns servers: Leaving out the comma and using single quotes:
fatal: [linux238.app.ansible]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"ageingtime": "300", "arp_interval": null, "arp_ip_target": null, "autoconnect": null, "conn_name": "eth0", "dns4": "["8.8.8.8 8.8.4.4"]", "dns6": null, "downdelay": null, "egress": null, "flags": null, "forwarddelay": "15", "gw4": "192.168.10.254", "gw6": null, "hellotime": "2", "ifname": "eno16780032", "ingress": null, "ip4": "192.168.10.238/24", "ip6": null, "mac": null, "master": null, "maxage": "20", "miimon": null, "mode": "balance-rr", "mtu": null, "priority": "128", "slavepriority": "32", "state": "present", "stp": "yes", "type": "ethernet", "updelay": null, "vlandev": null, "vlanid": null}, "module_name": "nmcli"}, "msg": "Error: failed to modify ipv4.dns: invalid IPv4 address '["8.8.8.8'.\n", "name": "eth0", "rc": 2} After some brute forcing with different formats: It works if you leave out the brackets:
|
@alcamie101, ping. This issue is still waiting on your response. |
@alcamie101, ping. This issue is still waiting on your response. |
@alcamie101, ping. This issue is still waiting on your response. |
2 similar comments
@alcamie101, ping. This issue is still waiting on your response. |
@alcamie101, ping. This issue is still waiting on your response. |
This issue still occur with Ansible-2.2. |
@alcamie101, ping. This issue is still waiting on your response. |
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo. |
Still happening. Anyone hoping to resolve this? I'd note that it only really happens when the DNS entries are on a line of their own. |
ISSUE TYPE
COMPONENT NAME
nmcli
ANSIBLE VERSION
CONFIGURATION
n/a
OS / ENVIRONMENT
CentOS 7 / CentOS 7
SUMMARY
nmcli example for setting two dns servers is invalid syntax and does not run.
STEPS TO REPRODUCE
Create playbook based on example from http://docs.ansible.com/ansible/nmcli_module.html
EXPECTED RESULTS
Task runs ok, dns servers get set
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: