julien_lecomte.proxmox.pool (1.0.2) — module

Adds, modifies, or removes a Proxmox pool.

Authors: Julien Lecomte (julien@lecomte.at)

Install collection

Install with ansible-galaxy collection install julien_lecomte.proxmox:==1.0.2


Add to requirements.yml

  collections:
    - name: julien_lecomte.proxmox
      version: 1.0.2

Description

Adds, modifies, or removes a Proxmox pool.

Returned values will exist in a variable named 'pool'.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create pool 'example'
  julien_lecomte.proxmox.pool:
    name: 'example'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create pool 'example' with a comment
  julien_lecomte.proxmox.pool:
    name: 'example'
    comment: 'Lorem ipsum'

Inputs

    
name:
    description:
    - The pool name.
    required: true
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Specify if the pool should exist (present) or absent.
    type: str

comment:
    description:
    - Optionally sets the comment field.
    type: str

Outputs

comment:
  description: Comment field.
  returned: when pool exists
  type: str
name:
  description: Proxmox pool name.
  returned: always
  type: str
state:
  description: State ("absent" or "present")
  returned: always
  type: str

See also