im using yml extension and error is the same

El lunes, 24 de diciembre de 2018, 11:16:42 (UTC-3), lalo andres escribió:
>
> sorry the snap not updated, i using .yml extension 
>
> [image: Capture.PNG]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> El lunes, 24 de diciembre de 2018, 11:09:30 (UTC-3), Serge van 
> Ginderachter escribió:
>>
>> a couple of things:
>>
>> 1/  your group is called win-mssql but the file is win-mssql_.ini (with 
>> an extra underscore)
>> 2/ don't use .ini as an extension, those are supposed to be configuration 
>> to dynbamic scripts, and are not parsed by ansible directly
>> 3/ group_vars files must be yaml, not ini
>>
>>
>>
>> On Mon, 24 Dec 2018 at 14:08, lalo andres <aide...@gmail.com> wrote:
>>
>>> 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-ans...@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-ans...@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-ans...@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-deve...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> [image: Capture.PNG]
>

-- 
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