summaryrefslogtreecommitdiffstats
path: root/roles
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
commit4a421249a8972c35cc6728cef7eed10e79419bbf (patch)
treed02a5f5a923d6105c2351c899def3edca8f954d7 /roles
parent7609367ecb9751825a37e0fe2717aae8fd805da9 (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
Diffstat (limited to 'roles')
-rw-r--r--roles/proxmoxer/tasks/main.yml13
-rw-r--r--roles/pve-lxc/tasks/main.yml3
2 files changed, 11 insertions, 5 deletions
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"