pulp / pulp.squeezer / 0.0.15 / module / x509_cert_guard Manage x509 cert guards of a pulp api server instance Authors: Matthias Dellweg (@mdellweg)pulp.squeezer.x509_cert_guard (0.0.15) — module
Install with ansible-galaxy collection install pulp.squeezer:==0.0.15
collections: - name: pulp.squeezer version: 0.0.15
This performs CRUD operations on x509 cert guards in a pulp api server instance.
- name: Read list of x509 cert guards from pulp api server pulp.squeezer.x509_cert_guard: pulp_url: https://pulp.example.org username: admin password: password register: guard_status
- name: Report pulp x509 cert guards debug: var: guard_status
- name: Create a x509 cert guard pulp.squeezer.x509_cert_guard: pulp_url: https://pulp.example.org username: admin password: password name: new_cert_guard description: A brand new cert guard with a description ca_certificate: "{{ lookup('file', path_to_ca_cert) }}" state: present
- name: Delete a x509 cert guard pulp.squeezer.x509_cert_guard: pulp_url: https://pulp.example.org username: admin password: password name: new_cert_guard state: absent
name: description: - Name of the cert guard to query or manipulate type: str state: choices: - present - absent description: - State the entity should be in type: str timeout: default: 10 description: - Time in seconds to wait for tasks. type: int password: description: - Password of api user. - If no value is specified, the value of the environment variable C(SQUEEZER_PASSWORD) will be used as a fallback. required: false type: str pulp_url: description: - URL of the server to connect to (without 'pulp/api/v3'). - If no value is specified, the value of the environment variable C(SQUEEZER_PULP_URL) will be used as a fallback. required: true type: str user_key: description: - Client certificate key of api user. required: false type: str username: description: - Username of api user. - If no value is specified, the value of the environment variable C(SQUEEZER_USERNAME) will be used as a fallback. required: false type: str user_cert: description: - Client certificate of api user. required: false type: str description: description: - Description of the cert guard type: str ca_certificate: description: - The Certificate Authority (CA) certificate type: str validate_certs: default: true description: - Whether SSL certificates should be verified. - If no value is specified, the value of the environment variable C(SQUEEZER_VALIDATE_CERTS) will be used as a fallback. type: bool refresh_api_cache: default: false description: - Whether the cached API specification should be invalidated. - It is recommended to use this once with the M(pulp.squeezer.status) module at the beginning of the playbook. type: bool
cert_guard: description: x509 cert guard details returned: when name is given type: dict cert_guards: description: List of x509 cert guards returned: when no name is given type: list