65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
- name: Install packages
|
|
hosts: localhost
|
|
gather_facts: true
|
|
|
|
|
|
tasks:
|
|
- name: Install system packages
|
|
become: yes
|
|
ansible.builtin.package:
|
|
name:
|
|
- git
|
|
- tmux
|
|
- python3-pip
|
|
- fish
|
|
- rofi
|
|
- rofi-devel
|
|
- qalculate
|
|
- automake
|
|
- libtool
|
|
state: present
|
|
|
|
# rust install, shamelessly stolen from https://waylonwalker.com/install-rust/
|
|
- name: Check if cargo is installed
|
|
shell: ls ~/.cargo
|
|
register: cargo_exists
|
|
ignore_errors: yes
|
|
|
|
- name: Download rust installer
|
|
when: cargo_exists is failed
|
|
get_url:
|
|
url: https://sh.rustup.rs
|
|
dest: /tmp/sh.rustup.rs
|
|
mode: '0755'
|
|
force: 'yes'
|
|
tags:
|
|
- rust
|
|
|
|
- name: Install rust and cargo
|
|
when: cargo_exists is failed
|
|
shell: /tmp/sh.rustup.rs -y
|
|
tags:
|
|
- rust
|
|
|
|
- name: Install cargo packages
|
|
community.general.cargo:
|
|
name:
|
|
- git-delta
|
|
- dotter
|
|
- bottom
|
|
- git-cliff
|
|
- topgrade
|
|
- bat
|
|
- cargo-update
|
|
state: latest
|
|
- name: Install pipx packages
|
|
community.general.pipx:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
loop:
|
|
- yt-dlp
|
|
- pdm
|
|
- poetry
|
|
- halig
|
|
- pre-commit
|
|
- ruff
|