pulp / pulp.squeezer / 0.0.15 / module / deb_distribution Manage deb distributions of a pulp api server instance Authors: Matthias Dellweg (@mdellweg)pulp.squeezer.deb_distribution (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 deb distributions in a pulp api server instance.
- name: Read list of deb distributions from pulp api server pulp.squeezer.deb_distribution: pulp_url: https://pulp.example.org username: admin password: password register: distribution_status
- name: Report pulp deb distributions debug: var: distribution_status
- name: Create a deb distribution pulp.squeezer.deb_distribution: pulp_url: https://pulp.example.org username: admin password: password name: new_deb_distribution base_path: new/deb/dist publication: /pub/api/v3/publications/deb/deb/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa/ state: present
- name: Delete a deb distribution pulp.squeezer.deb_distribution: pulp_url: https://pulp.example.org username: admin password: password name: new_deb_distribution state: absent
name: description: - Name of the distribution to query or manipulate required: false 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 base_path: description: - Base path to distribute a publication required: false type: str publication: description: - Href of the publication to be served required: false type: str content_guard: description: - Name of the content guard for the served content - 'Warning: This feature is not yet supported.' 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
distribution: description: Deb distribution details returned: when name is given type: dict distributions: description: List of deb distributions returned: when no name is given type: list