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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2883254f-de9b-42cc-a950-cc823bb52de3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to