community.general.copr module – Manage one of the Copr repositories
Note
This module is part of the community.general collection (version 4.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.copr
.
New in version 2.0.0: of community.general
Requirements
The below requirements are needed on the host that executes this module.
dnf
dnf-plugins-core
Parameters
Parameter |
Comments |
---|---|
The name of the chroot that you want to enable/disable/remove in the project, for example |
|
The Copr host to work with. Default: “copr.fedorainfracloud.org” |
|
Copr directory name, for example |
|
This indicate which protocol to use with the host. Default: “https” |
|
Whether to set this project as Choices:
|
Examples
- 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'
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Path to the project on the host. Returned: success Sample: “copr.fedorainfracloud.org/group_copr/integration_tests” |
|
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” |
Authors
Silvie Chlupova (@schlupov)
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication