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