ansible/roles/base/tasks/main.yml
2021-11-16 15:23:42 +00:00

117 lines
2.4 KiB
YAML

---
- name: Install rpmfusion-free
dnf:
name: https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-35.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-35.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
- sysbench
- exa
- iperf3
- zsh
- zsh-syntax-highlighting
- make
- direnv
- ncdu
- restic
- powertop
- tmux
- htop
- openssh-server
- curl
- neofetch
- vim
- podman
- podman-compose
- dnf-plugins-core
- lm_sensors
enablerepo: rpmfusion-free
state: present
become: yes
- name: Install ffmpeg
dnf:
name: ffmpeg
enablerepo: rpmfusion-free
state: present
become: yes
- 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 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