Checkpoint
This commit is contained in:
parent
c501435876
commit
6f5266b63d
42 changed files with 652 additions and 136 deletions
|
@ -5,4 +5,5 @@ mkcert_version: "v1.4.3"
|
|||
btop_version: "1.0.22"
|
||||
kind_version: "v0.11.1"
|
||||
kubectl_version: "v1.23.3"
|
||||
kompose_version: "v1.26.0"
|
||||
kompose_version: "v1.26.0"
|
||||
minikube_version: "v1.29.0"
|
||||
|
|
13
roles/base/files/boost.service
Normal file
13
roles/base/files/boost.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Enable AMD boost
|
||||
Before=basic.target
|
||||
After=local-fs.target sysinit.target
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c "echo 1 > /sys/devices/system/cpu/cpufreq/boost"
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
|
8
roles/base/handlers/main.yml
Normal file
8
roles/base/handlers/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
|
||||
- name: enable boost
|
||||
systemd:
|
||||
name: boost
|
||||
enabled: yes
|
||||
state: started
|
||||
become: yes
|
|
@ -1,5 +1,22 @@
|
|||
---
|
||||
|
||||
- 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"
|
||||
|
@ -25,6 +42,8 @@
|
|||
dnf:
|
||||
name:
|
||||
- kernel-tools
|
||||
- inotify-tools
|
||||
- btop
|
||||
- sysbench
|
||||
- exa
|
||||
- iperf3
|
||||
|
@ -33,9 +52,9 @@
|
|||
- make
|
||||
- direnv
|
||||
- ncdu
|
||||
- restic
|
||||
- powertop
|
||||
- tmux
|
||||
- btop
|
||||
- htop
|
||||
- openssh-server
|
||||
- curl
|
||||
|
@ -81,69 +100,37 @@
|
|||
dest: ~/.local/bin/mkcert
|
||||
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: 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 kubectl binary
|
||||
get_url:
|
||||
url: "https://dl.k8s.io/release/{{ kubectl_version }}/bin/linux/amd64/kubectl"
|
||||
dest: ~/.local/bin/kubectl
|
||||
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: create ~/.local/share/btop/themes
|
||||
file:
|
||||
path: ~/.local/share/btop/themes
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Fetch btop tarball and extract to ~/.local
|
||||
unarchive:
|
||||
src: https://github.com/aristocratos/btop/releases/download/v{{ btop_version }}/btop-{{ btop_version }}-x86_64-linux-musl.tbz
|
||||
dest: ~/.local/
|
||||
remote_src: yes
|
||||
exclude:
|
||||
- CHANGES.md
|
||||
- install.sh
|
||||
- LICENSE
|
||||
- Makefile
|
||||
- README.md
|
||||
- setuid.sh
|
||||
- uninstall.sh
|
||||
creates: ~/.local/bin/btop
|
||||
|
||||
- name: Move btop themes to correct path
|
||||
copy:
|
||||
src: ~/.local/themes
|
||||
dest: ~/.local/share/btop/
|
||||
remote_src: yes
|
||||
|
||||
- name: pip install yt-dlp
|
||||
pip:
|
||||
name: yt-dlp
|
||||
state: present
|
||||
|
||||
- name: Enable copr project varlad/onefetch
|
||||
community.general.copr:
|
||||
name: varlad/onefetch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue