Reported to the AWX project: https://github.com/ansible/awx/issues/7448

Reason for the behaviour with python 3.6: 
https://github.com/ansible/ansible/issues/70323#issuecomment-650176138

many thanks to @ryanpetrello

Regards
CWollinger

Am Freitag, 26. Juni 2020 09:03:16 UTC+2 schrieb Vladimir Botka:
>
> On Thu, 25 Jun 2020 23:33:20 -0700 (PDT) 
> CWollinger <[email protected] <javascript:>> wrote: 
>
> > I think the python version is the problem here. 
> > I see the behavior with ansible using python 3.6.x 
>
> You're probably right. I see the problem in FreeBSD too 
>
>
>   shell> uname -a 
>   FreeBSD <sanitized> 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC 
>  amd64 
>   
>   shell> cat hosts 
>   test1 ansible_host=10-1 
>   test2 ansible_host="10-1" 
>   
>   shell> ansible-inventory-2.7 -i hosts --list 
>   { 
>       "_meta": { 
>           "hostvars": { 
>               "test1": { 
>                   "ansible_host": "10-1" 
>               }, 
>               "test2": { 
>                   "ansible_host": "10-1" 
>               } 
>           } 
>       }, 
>       "all": { 
>           "children": [ 
>               "ungrouped" 
>           ] 
>       }, 
>       "ungrouped": { 
>           "hosts": [ 
>               "test1", 
>               "test2" 
>           ] 
>       } 
>   } 
>   
>   shell> ansible-inventory-3.6 -i hosts --list 
>   { 
>       "_meta": { 
>           "hostvars": { 
>               "test1": { 
>                   "ansible_host": 9 
>               }, 
>               "test2": { 
>                   "ansible_host": 9 
>               } 
>           } 
>       }, 
>       "all": { 
>           "children": [ 
>               "ungrouped" 
>           ] 
>       }, 
>       "ungrouped": { 
>           "hosts": [ 
>               "test1", 
>               "test2" 
>           ] 
>       } 
>   } 
>
> -- 
> Vladimir Botka 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1d609b20-7f3b-42ef-86f0-a2487b4b8f10o%40googlegroups.com.

Reply via email to