Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-25 Thread Tej Singh Rana
> > You have to use register module and get that output from debug module. > > -- 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

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-25 Thread Tony Wong
what line am i missing to output the information? without using - On Sun, May 24, 2020 at 11:17 PM David Foley wrote: > It's outputting your items list, as you have msg on the list if you are > looking to put the info you need to use a register then either var or > message that register > >

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-25 Thread David Foley
It's outputting your items list, as you have msg on the list if you are looking to put the info you need to use a register then either var or message that register -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread Tony Wong
tony@ubuntu:~/ansiblework$ ansible-playbook vmware_tools.yml -vvv ansible-playbook 2.9.0 config file = /home/tony/ansiblework/ansible.cfg configured module search path = [u'/home/tony/ansiblework/library'] ansible python module location = /home/tony/.local/lib/python2.7/site-packages/ansible

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread Vladimir Botka
On Sun, 24 May 2020 16:13:56 -0700 Tony Wong wrote: > [WARNING]: provided hosts list is empty, only localhost is available. Note > that the implicit localhost does not match 'all' Run the command below a see what's going on shell> ansible-inventory -vvv --graph -- You received this message

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread James Cassell
> On Sun, May 24, 2020 at 4:08 PM James Cassell > wrote: > > > > On Sun, May 24, 2020, at 6:56 PM, Tony Wong wrote: > > > --- > > > - name: get info vm > > > hosts: localhost > > > connection: local > > > gather_facts: false > > > vars: > > > vm_list: > > > - dr-reb > > > - dr-wac >

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread Tony Wong
Thanks! but I dont see any output running it [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' PLAY [get info vm]

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread James Cassell
On Sun, May 24, 2020, at 6:56 PM, Tony Wong wrote: > --- > - name: get info vm > hosts: localhost > connection: local > gather_facts: false > vars: > vm_list: > - dr-reb > - dr-wac > tasks: > - name: get info about the virtual machine > vmware_guest_info: > hostname: vcenter >

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2016-03-22 Thread Dick Davies
You need a group as the second argument. try ansible -i hosts vm -m ping On 22 March 2016 at 14:33, Leroy Walker Jr wrote: > I could really use some help on this issue. I have a hosts file with one > server. > the hosts looks like > > [vm] > 172.20.20.106 > > when i