The problem is solved, ima upgrade the version of ansible 

El lunes, 24 de diciembre de 2018, 10:08:01 (UTC-3), lalo andres escribió:
>
> Hello comunity
> I'm trying to set up "group_vars" in inventory, but for some reason it 
> does not work.
> I've tried with .ini and .yml files, in both I get the same error:
>
> ERROR! failed to combine variables, expected dicts but got a 'dict' and a 
> 'AnsibleUnicode':
> {}
>
>
> my ansible.conf is a default and my my file struct is:
>
> [image: Capture.PNG]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> my inventory in .ini:
> [win-mssql]
> lab-sql1.DOMAIN.cl <http://lab-sql1.domain.cl/>
>
> and .yml:
> win-mssql:
>   hosts:
>     lab-sql1.e-contact.cl:
>
>
> my archive of groups vars in ini:
> ansible_user=svc-ansible-...@domain.cl
> ansible_password=PASS
> ansible_port=5986
> ansible_connection=winrm
> ansible_winrm_server_cert_validation=ignore
> ansible_winrm_transport=kerberos
> ansible_winrm_service=HOST
>
>
> and .yml
> ---
> ansible_user:svc-ansible-...@domain.cl
> ansible_password:PASS
> ansible_port:5986
> ansible_connection:winrm
> ansible_winrm_server_cert_validation:ignore
> ansible_winrm_transport:kerberos
> ansible_winrm_service:HOST
>
> the commad to validate work 
>
> ansible all -i /etc/ansible/_inventories/staging/eco-SQL-dev.yml -m 
> win_ping -vvvvv
>
>
> the command work when the groups vars are defined in inventory but no in 
> archive of groups vars:
>
> win-mssql:
>   hosts:
>     lab-sql1.e-contact.cl:
>   vars:
>     ansible_user: svc-ansible-...@domain.cl
>     ansible_password: PASS
>     ansible_port: 5986
>     ansible_connection: winrm
>     ansible_winrm_server_cert_validation: ignore
>     ansible_winrm_transport: kerberos
>     ansible_winrm_service: HOST
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to