Note
This module is part of the community.general collection (version 10.7.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. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: community.general.copr.
New in community.general 2.0.0
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
chroot string | The name of the chroot that you want to enable/disable/remove in the project, for example |
excludepkgs list / elements=string added in community.general 9.4.0 | List of packages to exclude. |
host string | The Copr host to work with. Default: |
includepkgs list / elements=string added in community.general 9.4.0 | List of packages to include. |
name string / required | Copr directory name, for example |
protocol string | This indicate which protocol to use with the host. Default: |
state string | Whether to set this project as Choices:
|
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
Note
check_mode.- 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'
- name: Install Caddy
community.general.copr:
name: '@caddy/caddy'
chroot: fedora-rawhide-{{ ansible_facts.architecture }}
includepkgs:
- caddy
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
repo string | Path to the project on the host. Returned: success Sample: |
repo_filename string | The name of the repo file in which the copr project information is stored. Returned: success Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/copr_module.html