summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-07-04 23:52:49 +0200
committerAhmed AbdelHalim <[email protected]>2026-07-04 23:52:49 +0200
commit0263164d2f9cb23f96e9dfef68b2f257d4ce910d (patch)
treefaa20ca6ed3eddf981cdeed1de5a3f908703a509
parent73306e0140986fc05b903692736400700ccaac14 (diff)
Add pve-storage and pve-lxc to run containers on pve
-rw-r--r--configure.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.yml b/configure.yml
index 466103c0..2e034674 100644
--- a/configure.yml
+++ b/configure.yml
@@ -104,6 +104,7 @@
roles:
- role: "pve"
- role: "pve-network"
+ - role: "pve-storage"
- role: "locales"
- role: "timezone"
- role: "bash"
@@ -120,3 +121,22 @@
- role: "prometheus-node-exporter"
- role: "restic"
- role: "ethtool"
+ tasks:
+ - name: "Provision LXC containers"
+ tags: ["pve-lxc"]
+ ansible.builtin.include_role:
+ name: "pve-lxc"
+ vars:
+ pve_lxc_id: "{{ hostvars[service_host].pve_lxc_id }}"
+ pve_lxc_hostname: "{{ hostvars[service_host].pve_lxc_hostname }}"
+ pve_lxc_template: "{{ hostvars[service_host].pve_lxc_template }}"
+ pve_lxc_disk: "{{ hostvars[service_host].pve_lxc_disk }}"
+ pve_lxc_cores: "{{ hostvars[service_host].pve_lxc_cores }}"
+ pve_lxc_memory: "{{ hostvars[service_host].pve_lxc_memory }}"
+ pve_lxc_password: "{{ hostvars[service_host].pve_lxc_password }}"
+ pve_lxc_ip: "{{ hostvars[service_host].pve_lxc_ip }}"
+ pve_lxc_gateway: "{{ hostvars[service_host].pve_lxc_gateway }}"
+ pve_lxc_dns: "{{ hostvars[service_host].pve_lxc_dns }}"
+ loop: "{{ groups['services'] }}"
+ loop_control:
+ loop_var: "service_host"