From c3f58aff839ca90c30124d1fe898f901c1df64d5 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 7 Nov 2023 21:22:06 -0600 Subject: [PATCH] r/dch-yum: Configure dch Yum repository The *dch* repository, hosted on *file0.pyrocufflink.blue* and managed by the *repohost* Ansible role, is where I plan to host RPM packages for internal use (e.g. *sshca-cli*, *dch-selinux*, etc.). The *dch-yum* role configures Yum/dnf to use this repository. Roles that need to install a package from here will list this role as a dependency. --- roles/dch-yum/files/dch.repo | 6 ++++++ roles/dch-yum/tasks/main.yml | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 roles/dch-yum/files/dch.repo create mode 100644 roles/dch-yum/tasks/main.yml diff --git a/roles/dch-yum/files/dch.repo b/roles/dch-yum/files/dch.repo new file mode 100644 index 0000000..2f1227c --- /dev/null +++ b/roles/dch-yum/files/dch.repo @@ -0,0 +1,6 @@ +[dch] +name=DCH - Fedora $releasever +baseurl=https://files.pyrocufflink.blue/yum/dch/fedora/$releasever +gpgkey=https://files.pyrocufflink.blue/yum/dch/gnupg.pub +gpgcheck=1 +skip_if_unavailable=true diff --git a/roles/dch-yum/tasks/main.yml b/roles/dch-yum/tasks/main.yml new file mode 100644 index 0000000..ea32b48 --- /dev/null +++ b/roles/dch-yum/tasks/main.yml @@ -0,0 +1,9 @@ +- name: ensure dch yum repository is configured + copy: + src: dch.repo + dest: /etc/yum.repos.d/dch.repo + owner: root + group: root + mode: u=rw,go=r + tags: + - repo