bunch of stuff
This commit is contained in:
parent
a832a46772
commit
66b7a0ee5f
16 changed files with 239 additions and 111 deletions
6
ansible/main.yml
Normal file
6
ansible/main.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- import_role:
|
||||
name: packages
|
||||
6
ansible/roles/packages/tasks/debian.yml
Normal file
6
ansible/roles/packages/tasks/debian.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- name: Install Debian packages
|
||||
package:
|
||||
name:
|
||||
- qalculate-gtk
|
||||
- rofi-dev
|
||||
state: present
|
||||
30
ansible/roles/packages/tasks/main.yml
Normal file
30
ansible/roles/packages/tasks/main.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
- name: Install os-agnostic packages
|
||||
become: yes
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- git
|
||||
- tmux
|
||||
- python3-pip
|
||||
- fish
|
||||
- rofi
|
||||
- automake
|
||||
- libtool
|
||||
state: present
|
||||
|
||||
- name: Install Debian packages
|
||||
become: yes
|
||||
when: ansible_os_family == "Debian"
|
||||
import_tasks: debian.yml
|
||||
|
||||
- name: Install RHEL packages
|
||||
become: yes
|
||||
when: ansible_os_family in ["RedHat", "Nobara"]
|
||||
import_tasks: rhel.yaml
|
||||
|
||||
- name: Install Rust packages
|
||||
import_tasks: rust.yml
|
||||
|
||||
- name: Install Python packages
|
||||
import_tasks: python.yml
|
||||
#
|
||||
|
||||
13
ansible/roles/packages/tasks/python.yml
Normal file
13
ansible/roles/packages/tasks/python.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: Install pipx packages
|
||||
community.general.pipx:
|
||||
name: "{{ item }}"
|
||||
state: latest
|
||||
loop:
|
||||
- yt-dlp
|
||||
- pdm
|
||||
- poetry
|
||||
- halig
|
||||
- pre-commit
|
||||
- ruff
|
||||
- thefuck
|
||||
11
ansible/roles/packages/tasks/rhel.yaml
Normal file
11
ansible/roles/packages/tasks/rhel.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: Install RHEL packages
|
||||
package:
|
||||
name:
|
||||
- rofi-devel
|
||||
- qalculate
|
||||
- automake
|
||||
- libtool
|
||||
- cheat
|
||||
state: present
|
||||
|
||||
36
ansible/roles/packages/tasks/rust.yml
Normal file
36
ansible/roles/packages/tasks/rust.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
# 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
|
||||
- cargo-cache
|
||||
- garden-tools
|
||||
state: latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue