community / community.general / 1.3.14 / module / xenserver_facts get facts reported on xenserver Authors: Andy Hill (@andyhky), Tim Rupp (@caphrim007), Robin Lee (@cheese)community.general.xenserver_facts (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
Reads data out of XenAPI, can be used instead of multiple xe commands.
- name: Gather facts from xenserver community.general.xenserver_facts:
- name: Print running VMs ansible.builtin.debug: msg: "{{ item }}" with_items: "{{ xs_vms.keys() }}" when: xs_vms[item]['power_state'] == "Running"