Sure. Attached output of hostvars.

On Tue, Oct 1, 2019 at 7:41 PM Vladimir Botka <vbo...@gmail.com> wrote:

> On Tue, 1 Oct 2019 18:39:54 +0530
> Srinivas Naram <srinivas.nar...@gmail.com> wrote:
>
> > - debug:
> >      var: hostvars
> >
> > shows all the hosts in my inventory file, so I believe my playbook has
> > access to all hosts.
> > [...]
> > I still get following error
> > [...]
> > failed. The error was: error while evaluating conditional
> > (hostvars['hostname2']['ansible_facts']['distribution'] == 'CentOS'):
> > \"hostvars['hostname2']\" is undefined
> >
> > Any thoughts ?
>
> Sure. Attach the tarball with the output of "- debug: var=hostvars"
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG-N3P5uJYqSoR8fe3UdFgwMUKYpBkuZTQ6RHvV8hScyZxzL%2Bg%40mail.gmail.com.

Attachment: hostvars.log
Description: Binary data

Reply via email to