pulp / pulp.squeezer / 0.0.15 / module / rpm_sync Synchronize a rpm remote on a pulp server Authors: Jacob Floyd (@cognifloyd)pulp.squeezer.rpm_sync (0.0.15) — module
Install with ansible-galaxy collection install pulp.squeezer:==0.0.15
collections: - name: pulp.squeezer version: 0.0.15
This module synchronizes a rpm remote into a repository.
In check_mode this module assumes, nothing changed upstream.
- name: Sync rpm remote into repository pulp.squeezer.rpm_sync: pulp_url: https://pulp.example.org username: admin password: password repository: repo_1 remote: remote_1 register: sync_result
- name: Report synched repository version debug: var: sync_result.repository_version
remote: description: - Name of the remote to synchronize required: true 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 repository: description: - Name of the repository required: true type: str sync_policy: choices: - additive - mirror_complete - mirror_content_only default: additive description: - Policy to use when syncing. - The module will fall back to use the mirror parameter when pulp_rpm version is less than 3.16. - The mirror parameter does not support "mirror_content_only" value. required: false 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
repository_version: description: Repository version after synching returned: always type: dict