diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-03 21:32:24 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-03 21:46:32 +0200 |
| commit | 005c49353a6a71954e6a975a43989ded1786022a (patch) | |
| tree | 81881feb4dd3726d351f67cdabe7231b24d25383 /roles/pve/tasks | |
| parent | cc92c206fce389af2260eecc54ca9f2f97bbb0a0 (diff) | |
Refactor pve and add pve-network role to configure the pve network
Diffstat (limited to 'roles/pve/tasks')
| -rw-r--r-- | roles/pve/tasks/main.yml | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/roles/pve/tasks/main.yml b/roles/pve/tasks/main.yml index 39998cb7..7a314325 100644 --- a/roles/pve/tasks/main.yml +++ b/roles/pve/tasks/main.yml @@ -34,18 +34,6 @@ tags: - molecule-notest -- name: "Set management IP in /etc/hosts for PVE cert generation" - become: true - ansible.builtin.lineinfile: - path: "/etc/hosts" - regexp: "^{{ network_ipv4_address }}" - line: "{{ network_ipv4_address }} {{ ansible_facts['hostname'] }}" - state: present - notify: "Restart pveproxy" - tags: - # Since container doesn't have network ip address, skipping this test - - "molecule-notest" - - name: "Create PVE admin user" become: true ansible.builtin.command: @@ -73,6 +61,14 @@ tags: - "molecule-notest" +- name: "Create LVM volume group for PVE storage" + become: true + ansible.builtin.command: + cmd: "vgcreate {{ pve_lvm_vg_name }} {{ pve_lvm_device }}" + creates: "/dev/{{ pve_lvm_vg_name }}" + tags: + - "molecule-notest" + - name: "Enable and start Proxmox VE services" become: true ansible.builtin.systemd_service: |
