pulp.squeezer.deb_repository (0.0.15) — module

Manage deb repositories of a pulp api server instance

Authors: Matthias Dellweg (@mdellweg)

Install collection

Install with ansible-galaxy collection install pulp.squeezer:==0.0.15


Add to requirements.yml

  collections:
    - name: pulp.squeezer
      version: 0.0.15

Description

This performs CRUD operations on deb repositories in a pulp api server instance.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Read list of deb repositories from pulp api server
  pulp.squeezer.deb_repository:
    pulp_url: https://pulp.example.org
    username: admin
    password: password
  register: repo_status
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Report pulp deb repositories
  debug:
    var: repo_status
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a deb repository
  pulp.squeezer.deb_repository:
    pulp_url: https://pulp.example.org
    username: admin
    password: password
    name: new_repo
    description: A brand new repository with a description
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete a deb repository
  pulp.squeezer.deb_repository:
    pulp_url: https://pulp.example.org
    username: admin
    password: password
    name: new_repo
    state: absent

Inputs

    
name:
    description:
    - Name of the repository to query or manipulate
    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

description:
    description:
    - 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

Outputs

repositories:
  description: List of deb repositories
  returned: when no name is given
  type: list
repository:
  description: Deb repository details
  returned: when name is given
  type: dict