community.general.xenserver_facts (8.5.0) — module

Get facts reported on xenserver

Authors: Andy Hill (@andyhky), Tim Rupp (@caphrim007), Robin Lee (@cheese)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Reads data out of XenAPI, can be used instead of multiple xe commands.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather facts from xenserver
  community.general.xenserver_facts:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Print running VMs
  ansible.builtin.debug:
    msg: "{{ item }}"
  with_items: "{{ xs_vms.keys() }}"
  when: xs_vms[item]['power_state'] == "Running"