ansible / ansible.builtin / v2.5.10 / module / xenserver_facts get facts reported on xenserver | "added in version" 2.0 of ansible.builtin" Authors: Andy Hill (@andyhky), Tim Rupp, Robin Lee (@cheese) preview | supported by communityansible.builtin.xenserver_facts (v2.5.10) — module
pip
Install with pip install ansible==2.5.10
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"