ansible / ansible.builtin / v2.9.27 / module / xenserver_facts get facts reported on xenserver | "added in version" 2.0 of ansible.builtin" Authors: Andy Hill (@andyhky), Tim Rupp (@caphrim007), Robin Lee (@cheese) preview | supported by communityansible.builtin.xenserver_facts (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Reads data out of XenAPI, can be used instead of multiple xe commands.
- name: Gather facts from xenserver xenserver_facts:
- name: Print running VMs debug: msg: "{{ item }}" with_items: "{{ xs_vms.keys() }}" when: xs_vms[item]['power_state'] == "Running"