community / community.general / 8.5.0 / module / xenserver_facts Get facts reported on xenserver Authors: Andy Hill (@andyhky), Tim Rupp (@caphrim007), Robin Lee (@cheese)community.general.xenserver_facts (8.5.0) — module
Install with ansible-galaxy collection install community.general:==8.5.0
collections: - name: community.general version: 8.5.0
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"