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