streamline dnf repo install

This commit is contained in:
kevinnlsamuel committed 2026-10-01 00:33:47 +05:30
1 parent 1843173e25
commit e7f0d5e453
4 files changed
+38 -36

No files matched your search

+17 -36
View File
@@ -58,44 +58,25 @@
dest: /usr/local/bin/ dest: /usr/local/bin/
src: https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip src: https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip
- name: install google-chrome dnf repository - name: install dnf repos
become: true include_role:
copy: role: installdnfrepo
dest: /etc/yum.repos.d/google-chrome.repo loop:
content: | - id: googlechrome
[google-chrome] baseurl: https://dl.google.com/linux/chrome/rpm/stable/x86_64
name=google-chrome gpgkey: https://dl.google.com/linux/linux_signing_key.pub
baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
- name: install wayscriber dnf repository - id: wayscriber
become: true baseurl: https://wayscriber.com/rpm
copy: gpgkey: https://wayscriber.com/rpm/RPM-GPG-KEY-wayscriber.asc
dest: /etc/yum.repos.d/waysriber.repo
content: |
[wayscriber]
name=Wayscriber
baseurl=https://wayscriber.com/rpm
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://wayscriber.com/rpm/RPM-GPG-KEY-wayscriber.asc
- name: install tailscale dnf repository - id: tailscale
become: true baseurl: https://pkgs.tailscale.com/stable/fedora/$basearch
copy: gpgkey: https://pkgs.tailscale.com/stable/fedora/repo.gpg
dest: /etc/yum.repos.d/tailscale.repo
content: | - id: charmcli
[tailscale] baseurl: https://repo.charm.sh/yum/
name=Tailscale gpgkey: https://repo.charm.sh/yum/gpg.key
baseurl=https://pkgs.tailscale.com/stable/fedora/$basearch
enabled=1
type=rpm
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://pkgs.tailscale.com/stable/fedora/repo.gpg
- name: install dnf packages - name: install dnf packages
become: true become: true
+6
View File
@@ -0,0 +1,6 @@
galaxy_info:
author: kevinnlsamuel
description: sayin hello
dependencies:
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
+8
View File
@@ -0,0 +1,8 @@
- name: "install {{ item.id | default( id ) | mandatory }} dnf repository"
become: true
ansible.builtin.template:
dest: "/etc/yum.repos.d/{{ item.id | default( id ) | mandatory }}.repo"
src: dnfrepo.j2
owner: root
group: root
mode: 644
@@ -0,0 +1,7 @@
[{{ item.id | default( id ) | mandatory }}]
name={{ item.id | default( id ) | mandatory }}
baseurl={{ item.baseurl | default( baseurl ) | mandatory }}
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey={{ item.gpgkey | default( gpgkey ) | mandatory }}