diff options
| -rw-r--r-- | host_vars/pve.local.yml.example | 4 | ||||
| -rw-r--r-- | roles/proxmoxer/tasks/main.yml | 13 | ||||
| -rw-r--r-- | roles/pve-lxc/tasks/main.yml | 3 |
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" |
