ansible.builtin.xenserver_facts (v2.9.27) — module

get facts reported on xenserver

| "added in version" 2.0 of ansible.builtin"

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

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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"