ansible/roles/base/tasks/main.yml

157 lines
3.3 KiB
YAML
Raw Normal View History

2021-04-11 16:00:07 +01:00
---
- name: Install rpmfusion-free
dnf:
2022-04-25 12:48:36 +01:00
name: "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
2021-04-11 16:00:07 +01:00
state: present
disable_gpg_check: 1
become: yes
- name: Install rpmfusion-nonfree
dnf:
2022-04-25 12:48:36 +01:00
name: "https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm"
2021-04-11 16:00:07 +01:00
state: present
disable_gpg_check: 1
become: yes
2021-11-16 15:23:42 +00:00
- name: Remove unwanted dnf packages
dnf:
name:
- gedit
state: absent
become: yes
2021-04-11 16:00:07 +01:00
- name: Install common dnf packages
dnf:
name:
2021-11-16 15:23:42 +00:00
- kernel-tools
- sysbench
2021-04-11 16:00:07 +01:00
- exa
2021-11-16 15:23:42 +00:00
- iperf3
2021-04-11 16:00:07 +01:00
- zsh
- zsh-syntax-highlighting
- make
- direnv
- ncdu
- restic
- powertop
- tmux
- htop
- openssh-server
- curl
- neofetch
- vim
- podman
- podman-compose
- dnf-plugins-core
2021-11-16 15:23:42 +00:00
- lm_sensors
2022-04-25 12:48:36 +01:00
- cmake
- duf
- python3-pip
2021-04-11 16:00:07 +01:00
enablerepo: rpmfusion-free
state: present
become: yes
- name: Install ffmpeg
dnf:
name: ffmpeg
enablerepo: rpmfusion-free
state: present
become: yes
2022-04-25 12:48:36 +01:00
- name: create ~/.local/bin
file:
path: ~/.local/bin
state: directory
mode: '0755'
2021-11-16 15:23:42 +00:00
- 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
2021-04-11 16:00:07 +01:00
2021-11-16 15:23:42 +00:00
- 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
2021-04-11 16:00:07 +01:00
2021-11-16 15:23:42 +00:00
- 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
2021-04-11 16:00:07 +01:00
become: yes
2022-04-25 12:48:36 +01:00
- 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
2021-11-16 15:23:42 +00:00
- name: Install gh-cli
2021-04-11 16:00:07 +01:00
dnf:
2021-11-16 15:23:42 +00:00
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
2021-04-11 16:00:07 +01:00
copy:
2021-11-16 15:23:42 +00:00
src: ~/.local/themes
dest: ~/.local/share/btop/
remote_src: yes
2021-04-11 16:00:07 +01:00
2021-11-16 15:23:42 +00:00
- name: pip install yt-dlp
pip:
name: yt-dlp
2021-04-11 16:00:07 +01:00
state: present
2022-04-25 12:48:36 +01:00
- name: Enable copr project varlad/onefetch
community.general.copr:
name: varlad/onefetch
become: yes
- name: Install onefetch
dnf:
name: onefetch
state: present
become: yes