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 <[email protected]> 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: > [email protected] > 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:[email protected] > 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: [email protected] > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
