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