The module code appears to break while parsing the dictionary into a 
string, at or near line 505. This happens with the DNS entry when I pass in 
more than one entry as well. 

505 dstr+="%s: %s\n" % ( key, str_val)

On Monday, November 23, 2015 at 8:40:20 PM UTC-6, Joanna Delaporte wrote:
>
> Well, to make the play run, I removed " autoconnect=yes" line. However, 
> that is supposedly the default, so I am not sure why that line was turning 
> into 'autoconnect'.\n. I tried a few different methods of quoting, putting 
> the whole play on one line, etc. Every syntax method I tried returned the 
> same "'autoconnect'.\n" in the debug output. Removing the autoconnect 
> assignment made the play run smoothly for each different syntax attempt. 
>
> On Monday, November 23, 2015 at 1:10:40 PM UTC-6, Joanna Delaporte wrote:
>>
>> fatal: [redacted]: FAILED! => {"changed": false, "failed": true, 
>> "invocation": {"module_args": {"autoconnect": "yes", "conn_name": "enp5s0", 
>> "dns4": "redacted", "gw4": "redacted", "ip4": "redacted", "state": 
>> "present", "type": "ethernet"}, "module_name": "nmcli"}, "msg": "Error: 
>> invalid <setting>.<property> 'autoconnect'.\n", "name": "enp5s0", "rc": 2}
>>
>> ---
>> # This is a role to configure my workstation.
>>
>> - hosts: redacted
>>   user: redacted
>>   sudo: yes
>>   pre_tasks:
>>   - nmcli: 'conn_name="{{ ansible_interfaces[1] }}"
>>           state=present
>>           type=ethernet
>>           autoconnect=yes
>>           ip4="redacted"
>>           gw4="redacted"
>>           dns4="redacted"'
>>
>>

-- 
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/4f1db141-65a7-4fb6-8a00-aaf3bf2b1522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to