community.general.copr (8.5.0) — module

Manage one of the Copr repositories

| "added in version" 2.0.0 of community.general"

Authors: Silvie Chlupova (@schlupov) <schlupov@redhat.com>

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module can enable, disable or remove the specified repository.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable project Test of the user schlupov
  community.general.copr:
    host: copr.fedorainfracloud.org
    state: enabled
    name: schlupov/Test
    chroot: fedora-31-x86_64
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove project integration_tests of the group copr
  community.general.copr:
    state: absent
    name: '@copr/integration_tests'

Inputs

    
host:
    default: copr.fedorainfracloud.org
    description: The Copr host to work with.
    type: str

name:
    description: Copr directory name, for example C(@copr/copr-dev).
    required: true
    type: str

state:
    choices:
    - absent
    - enabled
    - disabled
    default: enabled
    description:
    - Whether to set this project as V(enabled), V(disabled), or V(absent).
    type: str

chroot:
    description:
    - The name of the chroot that you want to enable/disable/remove in the project, for
      example V(epel-7-x86_64). Default chroot is determined by the operating system,
      version of the operating system, and architecture on which the module is run.
    type: str

protocol:
    default: https
    description: This indicate which protocol to use with the host.
    type: str

Outputs

repo:
  description: Path to the project on the host.
  returned: success
  sample: copr.fedorainfracloud.org/group_copr/integration_tests
  type: str
repo_filename:
  description: The name of the repo file in which the copr project information is
    stored.
  returned: success
  sample: _copr:copr.fedorainfracloud.org:group_copr:integration_tests.repo
  type: str