refactor: remove pipx references from Ansible tasks and setup script
Some checks failed
Nix Format Check / check-format (push) Failing after 37s

This commit is contained in:
Menno van Leeuwen 2025-03-10 21:02:32 +01:00
parent ceca79f39b
commit 3bcf78d4eb
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
3 changed files with 1 additions and 24 deletions

View File

@ -31,7 +31,6 @@
name:
- git
- vim
- pipx
- trash-cli
- curl
- wget
@ -41,6 +40,3 @@
- python3-venv
state: present
become: true
- name: Include pipx tasks
ansible.builtin.import_tasks: tasks/global/pipx.yml

View File

@ -29,7 +29,6 @@
fastfetch
# Package management
pipx
devbox
# Development SDKs/Toolkits

View File

@ -247,25 +247,7 @@ EOF
fi
}
ensure_pipx() {
if ! command -v pipx >/dev/null 2>&1; then
log_info "Installing pipx..."
attempt_package_install "pipx"
# On Arch Linux, install pipx using pacman
if command -v pacman >/dev/null 2>&1; then
sudo pacman -S python-pipx || die "Failed to install pipx"
fi
# ensurepath
sudo pipx ensurepath || die "Failed to ensure pipx path"
fi
}
setup_ansible() {
ensure_pipx
log_info "Installing Ansible..."
attempt_package_install "ansible"
attempt_package_install "ansible-lint"