diff --git a/roles/copr/frontend/files/yum/_copr_@modularity-modulemd.custom.repo b/roles/copr/frontend/files/yum/_copr_@modularity-modulemd.custom.repo new file mode 100644 index 0000000000..3799020ba4 --- /dev/null +++ b/roles/copr/frontend/files/yum/_copr_@modularity-modulemd.custom.repo @@ -0,0 +1,12 @@ +[group_modularity-modulemd_custom] +name=Copr Modularity repo +failovermethod=priority +baseurl=file:///var/lib/copr/public_html/results/@modularity/modulemd/fedora-$releasever-x86_64/ + http://209.132.184.48/results/@modularity/modulemd/fedora-$releasever-x86_64/ + https://copr-be.cloud.fedoraproject.org/results/@modularity/modulemd/fedora-$releasever-x86_64/ + http://172.25.32.109/results/@modularity/modulemd/fedora-$releasever-x86_64/ + +gpgcheck=1 +gpgkey=https://copr-be.cloud.fedoraproject.org/results/@modularity/modulemd/pubkey.gpg +enabled=1 +skip_if_unavailable=1 diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index 7c77e22df2..1abad04170 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -8,6 +8,11 @@ command: "restorecon -vvRF /var/lib/pgsql" when: pgsql_ls.stdout is defined and 'postgresql_db_t' not in pgsql_ls.stdout +- name: install copr modularity repofile + copy: src="yum/_copr_@modularity-modulemd.custom.repo" dest="/etc/yum.repos.d/_copr_@modularity-modulemd.custom.repo" + tags: + - config + # BZ 1241507 - name: install copr-frontend shell: yum-deprecated install -y copr-frontend || yum install -y copr-frontend