ansible/roles/base/tasks/main.yml
2024-02-02 15:40:15 +00:00

143 lines
3.1 KiB
YAML

---
- name: Add boost service for AMD 4800U
copy:
src: boost.service
mode: "0644"
dest: /lib/systemd/system/boost.service
when: ansible_processor[2] == "AMD Ryzen 7 4800U with Radeon Graphics"
notify: enable boost
become: yes
- name: Disable SELinux because it's a nightmare with Podman
ansible.builtin.lineinfile:
path: /etc/selinux/config
regexp: '^SELINUX='
line: SELINUX=disabled
become: yes
- name: Install rpmfusion-free
dnf:
name: "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
disable_gpg_check: 1
become: yes
- name: Install rpmfusion-nonfree
dnf:
name: "https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
disable_gpg_check: 1
become: yes
- name: Remove unwanted dnf packages
dnf:
name:
- gedit
state: absent
become: yes
- name: Install common dnf packages
dnf:
name:
- kernel-tools
- inotify-tools
- btop
- sysbench
- exa
- iperf3
- zsh
- zsh-syntax-highlighting
- make
- direnv
- ncdu
- powertop
- tmux
- btop
- htop
- openssh-server
- curl
- neofetch
- vim
- podman
- podman-compose
- dnf-plugins-core
- lm_sensors
- cmake
- duf
- python3-pip
enablerepo: rpmfusion-free
state: present
become: yes
- name: Install ffmpeg
dnf:
name: ffmpeg
enablerepo: rpmfusion-free
state: present
become: yes
- name: create ~/.local/bin
file:
path: ~/.local/bin
state: directory
mode: '0755'
- name: Install 1password cli
unarchive:
src: "https://cache.agilebits.com/dist/1P/op/pkg/{{ onepassword_cli_version }}/op_linux_amd64_{{ onepassword_cli_version }}.zip"
dest: ~/.local/bin/
mode: 0755
remote_src: yes
#exclude:
#- op.sig
- name: Fetch mkcert binary
get_url:
url: "https://github.com/FiloSottile/mkcert/releases/download/{{ mkcert_version }}/mkcert-{{ mkcert_version }}-linux-amd64"
dest: ~/.local/bin/mkcert
mode: 0755
- name: Fetch kind binary
get_url:
url: "https://kind.sigs.k8s.io/dl/{{ kind_version }}/kind-linux-amd64"
dest: ~/.local/bin/kind
mode: 0755
- name: Fetch kompose binary
get_url:
url: "https://github.com/kubernetes/kompose/releases/download/{{ kompose_version }}/kompose-linux-amd64"
dest: ~/.local/bin/kompose
mode: 0755
- name: Fetch minikube binary
get_url:
url: "https://github.com/kubernetes/minikube/releases/download/{{ minikube_version }}/minikube-linux-amd64"
dest: ~/.local/bin/minikube
mode: 0755
- name: Fetch gh-cli repo
get_url:
url: https://cli.github.com/packages/rpm/gh-cli.repo
dest: /etc/yum.repos.d/gh-cli.repo
mode: 0644
become: yes
- name: Install gh-cli
dnf:
name: gh
state: present
become: yes
- name: Enable copr project varlad/onefetch
community.general.copr:
name: varlad/onefetch
become: yes
- name: Install onefetch
dnf:
name: onefetch
state: present
become: yes