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