julien_lecomte.proxmox.certificate (1.0.2) — module

Adds, modifies, or removes a SSL certificate

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 SSL certificate.

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add or modify certificate
  julien_lecomte.proxmox.certificate:
    certificate: '{{ lookup("ansible.builtin.file", "public1.pem") }}'
    key: '{{ lookup("ansible.builtin.file", "private1.pem") }}'
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Clean up
  julien_lecomte.proxmox.certificate:
    state: "absent"

Inputs

    
key:
    description:
    - PEM encoded private key.
    type: str

node:
    description:
    - The cluster node name (or empty/"localhost" for localhost).
    type: str

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

restart:
    description:
    - Restart pveproxy (default True).
    type: boolean

certificate:
    description:
    - PEM encoded certificate (chain).
    type: str

Outputs

state:
  description: State ("absent" or "present")
  returned: always
  type: str

See also