diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-04 23:52:49 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-04 23:52:49 +0200 |
| commit | ca4adf483fffc127729c2dcb06877b412eee6118 (patch) | |
| tree | faa20ca6ed3eddf981cdeed1de5a3f908703a509 /configure.yml | |
| parent | 60137b7ddc6678bfde5c4c97afd73fafebe0d809 (diff) | |
Add pve-storage and pve-lxc to run containers on pve
Diffstat (limited to 'configure.yml')
| -rw-r--r-- | configure.yml | 20 |
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" |
