julien_lecomte.proxmox.proxmox_role (0.1.1) — module

Adds, modifies, or removes a Proxmox role.

Authors: Julien Lecomte (julien@lecomte.at)

Install collection

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


Add to requirements.yml

  collections:
    - name: julien_lecomte.proxmox
      version: 0.1.1

Description

Adds, modifies, or removes a Proxmox role.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create role foobar
  julien_lecomte.proxmox.proxmox_role:
    name: foobar
    privileges:
      - Pool.Allocate
      - Pool.Audit

Inputs

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

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Whether the role should be added (or modified), or removed.
    type: str

append:
    description:
    - Optionally append privileges.
    type: bool

privileges:
    description:
    - List of privileges to give.
    type: list

Outputs

name:
  description: The role name.
  returned: On success.
  type: str
privileges:
  description: List of privileges.
  returned: On success when role exists.
  type: list