Hi Kai, Thanks, it worked like a charm :)
I already worked with inventory files but since I did it only few times i missed it. The thing is that Ansible uses /etc/hosts file in a way, because the hostname you place into inventory file, or in ansible hosts file must be found in /etc/hosts file in order to be associated to a IP Address if I'm not mistaken. Thanks, Mihai. On Sat, Jan 26, 2019 at 12:29 AM Kai Stian Olstad <[email protected]> wrote: > > On 25.01.2019 22:51, boncalo mihai wrote: > > I don't know Ansible too much but the error "skipping: no hosts > > matched" doesn't seem related to the hashing issue > > > > What intrigues me is that I specified the hostname ansible2, which can > > be found in /etc/hosts > > Ansible doesn't use /etc/hosts, you should read up on basic Ansible > usage. > https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html > https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html > > -- > Kai Stian Olstad > > -- > 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 post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/a4eba41124ce7b56bfda24bbfd3bbb21%40olstad.com. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAOK917T7wUpDyiBM7pbDv_RqvDfs37zCaR%2Bom6qkXbOHmeTZVQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
