Install yt-dlp with host pipx tools

This commit is contained in:
juvdiaz 2026-06-27 14:07:57 -06:00
parent e0684a1d1c
commit 25c05041da
3 changed files with 23 additions and 0 deletions

View File

@ -28,6 +28,7 @@ The playbook:
- configures apt repositories for Docker, Kubernetes, Helm, OpenTofu, and Brave - configures apt repositories for Docker, Kubernetes, Helm, OpenTofu, and Brave
- installs the captured Debian package set, filtering packages unavailable on - installs the captured Debian package set, filtering packages unavailable on
the current Debian release the current Debian release
- installs user-level pipx CLI tools such as `yt-dlp`
- installs Zoom from the upstream `.deb` when requested on amd64 - installs Zoom from the upstream `.deb` when requested on amd64
- adds `jv` to expected local groups - adds `jv` to expected local groups
- enables core services such as Docker, containerd, kubelet, ssh, cron, and - enables core services such as Docker, containerd, kubelet, ssh, cron, and

View File

@ -27,6 +27,9 @@ debian_pc_enable_services:
- kubelet - kubelet
- bluetooth - bluetooth
debian_pc_pipx_packages:
- yt-dlp
debian_pc_hold_packages: debian_pc_hold_packages:
- containerd.io - containerd.io
- kubeadm - kubeadm

View File

@ -166,6 +166,25 @@
- "'zoom' in debian_pc_apt_manual_packages" - "'zoom' in debian_pc_apt_manual_packages"
- ansible_facts.architecture == "x86_64" - ansible_facts.architecture == "x86_64"
- name: Ensure pipx binary path is configured for the homelab user
ansible.builtin.command:
cmd: python3 -m pipx ensurepath
become: true
become_user: "{{ debian_pc_user }}"
environment:
PATH: "{{ debian_pc_user_home }}/.local/bin:/usr/local/bin:/usr/bin:/bin"
changed_when: false
- name: Install user pipx CLI tools
ansible.builtin.command:
cmd: "python3 -m pipx install {{ item }}"
creates: "{{ debian_pc_user_home }}/.local/bin/{{ item }}"
become: true
become_user: "{{ debian_pc_user }}"
environment:
PATH: "{{ debian_pc_user_home }}/.local/bin:/usr/local/bin:/usr/bin:/bin"
loop: "{{ debian_pc_pipx_packages }}"
- name: Hold Kubernetes and runtime packages - name: Hold Kubernetes and runtime packages
ansible.builtin.dpkg_selections: ansible.builtin.dpkg_selections:
name: "{{ item }}" name: "{{ item }}"