julien_lecomte / julien_lecomte.proxmox / 1.0.2 / module / certificate Adds, modifies, or removes a SSL certificate Authors: Julien Lecomte (julien@lecomte.at)julien_lecomte.proxmox.certificate (1.0.2) — module
Install with ansible-galaxy collection install julien_lecomte.proxmox:==1.0.2
collections: - name: julien_lecomte.proxmox version: 1.0.2
Adds, modifies, or removes a SSL certificate.
Returned values will exist in a variable named 'certificate'.
- 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"
- name: Clean up julien_lecomte.proxmox.certificate: state: "absent"
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
state: description: State ("absent" or "present") returned: always type: str