feat: install python tools with uv
This commit is contained in:
parent
2503391427
commit
f133c39a20
4 changed files with 12 additions and 9 deletions
|
|
@ -11,8 +11,6 @@ common:
|
||||||
- base-devel
|
- base-devel
|
||||||
- name: mosh
|
- name: mosh
|
||||||
desc: The best to connect to remote server!
|
desc: The best to connect to remote server!
|
||||||
- name: python-pipx
|
|
||||||
desc: To install python stuff
|
|
||||||
deps:
|
deps:
|
||||||
- name: aur/downgrade
|
- name: aur/downgrade
|
||||||
- name: pacman-contrib
|
- name: pacman-contrib
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
base:
|
base:
|
||||||
|
- mkdocs
|
||||||
- pipdeptree
|
- pipdeptree
|
||||||
- copyparty
|
- copyparty
|
||||||
- lesspass
|
- lesspass
|
||||||
|
|
@ -7,8 +8,7 @@ base:
|
||||||
- mkdocs
|
- mkdocs
|
||||||
- linkchecker
|
- linkchecker
|
||||||
- imagehash
|
- imagehash
|
||||||
|
- pylint
|
||||||
multimedia:
|
multimedia:
|
||||||
- azlyrics2
|
- azlyrics2
|
||||||
- epy-reader
|
- epy-reader
|
||||||
- name: rembg
|
|
||||||
desc: Remove image background
|
|
||||||
5
ansible/roles/uv_tools/tasks/main.yaml
Normal file
5
ansible/roles/uv_tools/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
- name: Install tool with UV
|
||||||
|
register: uv_tool_install
|
||||||
|
ansible.builtin.command: |
|
||||||
|
uv tool install {{ item }}
|
||||||
|
changed_when: "'already installed' not in uv_tool_install.stdout"
|
||||||
|
|
@ -121,6 +121,11 @@
|
||||||
- shell: "rm -rf /etc/pacman.d/gnupg && pacman-key --init && pacman-key --populate archlinux"
|
- shell: "rm -rf /etc/pacman.d/gnupg && pacman-key --init && pacman-key --populate archlinux"
|
||||||
- shell: "mkdir -p {{ home }}/.cache/monakhos; echo -n $(date --iso-8601=d) > {{ home }}/.cache/monakhos/pacman_key_state"
|
- shell: "mkdir -p {{ home }}/.cache/monakhos; echo -n $(date --iso-8601=d) > {{ home }}/.cache/monakhos/pacman_key_state"
|
||||||
|
|
||||||
|
- name: Install global tools (Python packages)
|
||||||
|
include_role:
|
||||||
|
name: uv_tools
|
||||||
|
with_items: "{{ lookup('pipe', 'cat python_packages.yaml | python3 parse_arch_packages.py all') | from_json }}"
|
||||||
|
|
||||||
# AUR SETUP
|
# AUR SETUP
|
||||||
- name: Create the aur_builder user
|
- name: Create the aur_builder user
|
||||||
become: yes
|
become: yes
|
||||||
|
|
@ -344,11 +349,6 @@
|
||||||
include_role:
|
include_role:
|
||||||
name: popequer_notebook
|
name: popequer_notebook
|
||||||
|
|
||||||
- name: Install pip packages
|
|
||||||
community.general.pipx:
|
|
||||||
name: "{{ item }}"
|
|
||||||
with_items: "{{ lookup('pipe', 'cat pip_packages.yaml | python3 parse_arch_packages.py all') | from_json }}"
|
|
||||||
|
|
||||||
- name: Enable bluetooth service
|
- name: Enable bluetooth service
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd_service:
|
ansible.builtin.systemd_service:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue