community / community.general / 6.6.8 / module / copr Manage one of the Copr repositories | "added in version" 2.0.0 of community.general" Authors: Silvie Chlupova (@schlupov) <schlupov@redhat.com>community.general.copr (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
This module can enable, disable or remove the specified repository.
- 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
- name: Remove project integration_tests of the group copr community.general.copr: state: absent name: '@copr/integration_tests'
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 C(enabled), C(disabled) or C(absent). type: str chroot: description: - The name of the chroot that you want to enable/disable/remove in the project, for example C(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
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