Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7f0d5e453
|
||
|
|
1843173e25
|
||
|
|
06d0065f69
|
No files matched your search
@@ -5,10 +5,16 @@
|
||||
connection: local
|
||||
name: setup fedora workstation
|
||||
|
||||
module_defaults:
|
||||
ansible.builtin.dnf:
|
||||
install_weak_deps: false
|
||||
|
||||
tasks:
|
||||
|
||||
- name: remove fedora fluff
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
state: absent
|
||||
allowerasing: true
|
||||
autoremove: true
|
||||
name:
|
||||
@@ -19,13 +25,11 @@
|
||||
- python3-botocore
|
||||
- firefox
|
||||
- nodejs
|
||||
state: absent
|
||||
|
||||
- name: install core components
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
state: present
|
||||
install_weak_deps: false
|
||||
name:
|
||||
- git
|
||||
- git-crypt
|
||||
@@ -54,50 +58,30 @@
|
||||
dest: /usr/local/bin/
|
||||
src: https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip
|
||||
|
||||
- name: install google-chrome dnf repository
|
||||
become: true
|
||||
copy:
|
||||
dest: /etc/yum.repos.d/google-chrome.repo
|
||||
content: |
|
||||
[google-chrome]
|
||||
name=google-chrome
|
||||
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 dnf repos
|
||||
include_role:
|
||||
role: installdnfrepo
|
||||
loop:
|
||||
- id: googlechrome
|
||||
baseurl: https://dl.google.com/linux/chrome/rpm/stable/x86_64
|
||||
gpgkey: https://dl.google.com/linux/linux_signing_key.pub
|
||||
|
||||
- name: install wayscriber dnf repository
|
||||
become: true
|
||||
copy:
|
||||
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
|
||||
- id: wayscriber
|
||||
baseurl: https://wayscriber.com/rpm
|
||||
gpgkey: https://wayscriber.com/rpm/RPM-GPG-KEY-wayscriber.asc
|
||||
|
||||
- name: install tailscale dnf repository
|
||||
become: true
|
||||
copy:
|
||||
dest: /etc/yum.repos.d/tailscale.repo
|
||||
content: |
|
||||
[tailscale]
|
||||
name=Tailscale
|
||||
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
|
||||
- id: tailscale
|
||||
baseurl: https://pkgs.tailscale.com/stable/fedora/$basearch
|
||||
gpgkey: https://pkgs.tailscale.com/stable/fedora/repo.gpg
|
||||
|
||||
- id: charmcli
|
||||
baseurl: https://repo.charm.sh/yum/
|
||||
gpgkey: https://repo.charm.sh/yum/gpg.key
|
||||
|
||||
- name: install dnf packages
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
state: present
|
||||
install_weak_deps: false
|
||||
name:
|
||||
- aria2
|
||||
- bat
|
||||
|
||||
@@ -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.
|
||||
@@ -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 }}
|
||||
Reference in new issue
Block a user