summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-07-08 01:50:59 +0200
committerAhmed AbdelHalim <[email protected]>2026-07-08 01:50:59 +0200
commitf97653c1700466ad2d0bc1e3f63bfa4937c63305 (patch)
treed02a5f5a923d6105c2351c899def3edca8f954d7
parentd68468e3c425ae4efa318c81ed57cc32a7979660 (diff)
Fix install proxmoxer using pip
Using mise or python role broke on other machines so went with the simplest solution for now, it's safe to break the system packages for python as this is not used internally in other ways Also proxmoxer 2+ is needed to work with the proxmox module
-rw-r--r--host_vars/pve.local.yml.example4
-rw-r--r--roles/proxmoxer/tasks/main.yml13
-rw-r--r--roles/pve-lxc/tasks/main.yml3
3 files changed, 13 insertions, 7 deletions
diff --git a/host_vars/pve.local.yml.example b/host_vars/pve.local.yml.example
index 007962dc..0a4a5ceb 100644
--- a/host_vars/pve.local.yml.example
+++ b/host_vars/pve.local.yml.example
@@ -2,7 +2,7 @@
network_ipv4_address: "10.0.0.253"
network_ipv4_gateway: "10.0.0.254"
network_ipv4_dns: "10.0.0.254"
-network_bridge_interface: "enp0s25"
+network_bridge_interface: "eth0"
pve_admin_user: "admin"
pve_admin_password: "changeme"
@@ -10,5 +10,5 @@ pve_storage_device: "/dev/sda4"
restic_version: "0.19.0"
-ethtool_wol_interface: "enp0s25"
+ethtool_wol_interface: "eth0"
ethtool_lid_ac_action: "ignore"
diff --git a/roles/proxmoxer/tasks/main.yml b/roles/proxmoxer/tasks/main.yml
index ece34d87..1b08ee8c 100644
--- a/roles/proxmoxer/tasks/main.yml
+++ b/roles/proxmoxer/tasks/main.yml
@@ -1,8 +1,15 @@
---
-- name: "Install proxmoxer"
+- name: "Install pip"
become: true
ansible.builtin.package:
+ name: "python3-pip"
+ state: present
+
+- name: "Install proxmoxer"
+ become: true
+ ansible.builtin.pip:
name:
- - "python3-proxmoxer"
- - "python3-requests"
+ - "proxmoxer>=2.3.0"
+ - "requests"
state: present
+ extra_args: "--break-system-packages"
diff --git a/roles/pve-lxc/tasks/main.yml b/roles/pve-lxc/tasks/main.yml
index 56397e50..c5599751 100644
--- a/roles/pve-lxc/tasks/main.yml
+++ b/roles/pve-lxc/tasks/main.yml
@@ -10,7 +10,6 @@
content_type: "vztmpl"
template: "{{ pve_lxc_template }}"
state: present
- no_log: true
tags:
# PVE API not available in containers — requires proxmox-ve package
- "molecule-notest"
@@ -34,6 +33,7 @@
nameserver: "{{ pve_lxc_dns }}"
onboot: true
unprivileged: true
+ cmode: "shell"
state: present
tags:
# PVE API not available in containers — requires proxmox-ve package
@@ -48,7 +48,6 @@
node: "{{ ansible_facts['hostname'] }}"
vmid: "{{ pve_lxc_id }}"
state: started
- no_log: true
tags:
# PVE API not available in containers — requires proxmox-ve package
- "molecule-notest"