pulp / pulp.squeezer / 0.0.15 / module / rpm_repository Manage rpm repositories of a pulp api server instance Authors: Jacob Floyd (@cognifloyd), Aaron Sweeney (@ajsween)pulp.squeezer.rpm_repository (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 rpm repositories in a pulp api server instance.
- name: Read list of rpm repositories from pulp api server pulp.squeezer.rpm_repository: pulp_url: https://pulp.example.org username: admin password: password register: repo_status
- name: Report pulp rpm repositories debug: var: repo_status
- name: Create a rpm repository pulp.squeezer.rpm_repository: pulp_url: https://pulp.example.org username: admin password: password name: new_repo description: A brand new repository with a description autopublish: true state: present
- name: Delete a rpm repository pulp.squeezer.rpm_repository: pulp_url: https://pulp.example.org username: admin password: password name: new_repo state: absent
name: description: - A unique name of the repository to query or manipulate - Required for Create, Update, and Destroy operations - If no value is specified, returns a list of all repositories type: str state: choices: - present - absent description: - State the entity should be in type: str 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: true 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 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: true type: str autopublish: description: - Whether to automatically create publications for new repository versions type: bool version_added: 0.0.13 version_added_collection: pulp.squeezer description: description: - An optional description of the repository 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
repositories: description: List of rpm repositories returned: when no name is given type: list repository: description: Rpm repository details returned: when name is given type: dict