Compare commits

...
3 Commits
Author SHA1 Message Date
kevinnlsamuel e7f0d5e453 streamline dnf repo install 2026-10-01 00:33:47 +05:30
kevinnlsamuel 1843173e25 dust off 2026-09-30 23:57:52 +05:30
kevinnlsamuel 06d0065f69 dnf ignore weak deps by default 2026-09-30 23:52:25 +05:30
4 changed files with 44 additions and 39 deletions

No files matched your search

+23 -39
View File
@@ -5,10 +5,16 @@
connection: local connection: local
name: setup fedora workstation name: setup fedora workstation
module_defaults:
ansible.builtin.dnf:
install_weak_deps: false
tasks: tasks:
- name: remove fedora fluff - name: remove fedora fluff
become: true become: true
ansible.builtin.dnf: ansible.builtin.dnf:
state: absent
allowerasing: true allowerasing: true
autoremove: true autoremove: true
name: name:
@@ -19,13 +25,11 @@
- python3-botocore - python3-botocore
- firefox - firefox
- nodejs - nodejs
state: absent
- name: install core components - name: install core components
become: true become: true
ansible.builtin.dnf: ansible.builtin.dnf:
state: present state: present
install_weak_deps: false
name: name:
- git - git
- git-crypt - git-crypt
@@ -54,50 +58,30 @@
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
ansible.builtin.dnf: ansible.builtin.dnf:
state: present state: present
install_weak_deps: false
name: name:
- aria2 - aria2
- bat - bat
+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 }}