summaryrefslogtreecommitdiffstats
path: root/roles/pve/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/pve/tasks/main.yml')
-rw-r--r--roles/pve/tasks/main.yml20
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: