community.general.xenserver_facts (0.2.1) — 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:==0.2.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.2.1

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
  xenserver_facts:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Print running VMs
  debug:
    msg: "{{ item }}"
  with_items: "{{ xs_vms.keys() }}"
  when: xs_vms[item]['power_state'] == "Running"