---
- hosts: localhost
gather_facts: false
connection: local
collections:
- community.vmware
- community.general
vars_files:
- ./vars/vmware_vars.yml
vars:
vm_list:
- vm1
- vm2
tasks:
- name: Gather VM info
vmware_guest_info:
hostname: "{{ vcenter_server }}"
username: "{{ vcenter_user }}"
password: "{{ vcenter_pass }}"
datacenter: "{{ vcenter_datacenter }}"
validate_certs: no
name: "{{ item }}"
register: vm_info
with_items: "{{ vm_list }}"
- name: Tools status all
debug:
msg: "{{ vm_info.results | json_query(jmesquery) }}"
vars:
jmesquery: "[?instance.hw_name == '{{ item }}'].instance.guest_tools_status"
with_items: "{{ vm_list }}"
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3473c234-0db3-4808-b73d-d9ba8460b5ee%40googlegroups.com.
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/201e9930-5b7d-432e-b801-d19070f1c81d%40googlegroups.com.
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/201e9930-5b7d-432e-b801-d19070f1c81d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNCN3M5sh3H%3D4rFgO3d1TRXogadBjxd4CnyQCn%2BeG%3DANg%40mail.gmail.com.
Please as said by another people
here, respect indentations stricly !
vmware_guest_info & name have not the same indentation as written by A. Kasurde
Regards,
JYL
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkrJZNWzwge_XJFc_Qjac1epTEqvCZS%2BkDRCGDyEqMBNUw%40mail.gmail.com.
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3000e6a2-0db0-4bd5-8fba-ec114f5240e4%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/672cc33a-758f-4083-a48b-0882cb11e453%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhko58CP5KrYDHK6gBmqdnpqDS0f%2B-Q5hhE37QQ62fHe%2BGQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3473c234-0db3-4808-b73d-d9ba8460b5ee%40googlegroups.com.
--Thanks,Abhijeet Kasurde
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/672cc33a-758f-4083-a48b-0882cb11e453%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwMSddLS4fxT1btN%2B99-pz_fZ5M%2BLjhiKoH9c7ZbNwiHOw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/921f762c-f305-a8a4-98fd-77789c515fec%40linuxia.de.
Can you Install Ansible 2.9 on a Test Machine and Retest on this version ?
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dd7813fa-88fd-4a75-8112-3dce3819459b%40googlegroups.com.
$ sudo apt update $ sudo apt install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible $ sudo apt install ansible
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8d575edb-65a0-4d98-b6d7-c6a0ca349ac8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNdKY5E20UapWMC6V2fgY%2BJFjix1TgTJcCH8-CvKcs9UA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwPHxh5kNmb%3DrXbarNX8T%2Bs9KFCaCoc2wY3ZfCiu9FdtFQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkqpVP8u4pbB3R-4qTK5L1Qh65-JbDNdhPnstWPEhrFK4w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFwWkHq_4V7tG7QVVKVXAFrfZjiB_6x0vP2iSyaHGgfNfRq%2BTg%40mail.gmail.com.
You need to debug out the message
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/10241fc0-733f-4839-a1a3-fce4818545e7%40googlegroups.com.
You need to do loop on the var
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4f261b1b-17ae-475d-ba8d-dbe7b8aead5a%40googlegroups.com.