Signed-off-by: David Galloway <dgallowa@redhat.com>
gpgcheck: 0
priority: 0
+A list of copr repos to enable using ``dnf copr enable``::
+
+ copr_repos: []
+
+ # An example:
+ copr_repos:
+ - ktdreyer/ceph-el8
+
A list defining apt repos that would be common across a major version or distro. Each item in the list represents
an apt repo to be added to sources.list::
# version-specific yum repos, defined in the version specific var file
yum_repos: {}
+# list of copr repo *names* to enable (e.g., user/repo)
+copr_repos: []
+
# apt repos common to a major version or distro
common_apt_repos: []
with_dict: "{{ yum_repos }}"
when: yum_repos.keys() | length > 0
+- name: Enable copr repos
+ command: "dnf -y copr enable {{ item }}"
+ with_items: "{{ copr_repos }}"
+ when:
+ - (ansible_os_family == "RedHat" and ansible_distribution_major_version|int >= 8)
+ - copr_repos|length > 0
+
- import_tasks: gpg_keys.yml
when: ansible_distribution == "Fedora"
tags:
---
-# vars specific to any rhel 8.x version
+# vars specific to any centos 8.x version
common_yum_repos:
lab-extras:
enabled: 1
gpgcheck: 0
+copr_repos:
+ - ktdreyer/ceph-el8
+
packages:
- '@core'
- '@base'
enabled: 1
gpgcheck: 0
+copr_repos:
+ - ktdreyer/ceph-el8
+
packages:
- '@core'
- '@base'