]> xn--ix-yja.es Git - alex.git/commitdiff
Support expanding memory and disk
authoralex <alex@pdp7.net>
Sun, 7 May 2023 10:09:10 +0000 (12:09 +0200)
committeralex <alex@pdp7.net>
Sun, 7 May 2023 10:10:17 +0000 (12:10 +0200)
personal_infra/playbooks/roles/proxmox_create_lxc/tasks/main.yml

index ecb600aa5b6d171121594ebc9fb83adcd5657f27..e1f4608cc0c268b2af86ce57d46371ec4e97520f 100644 (file)
@@ -13,6 +13,8 @@
       -onboot 1
       {% if not proxmox.privileged|default(false) %} -unprivileged {% endif %}
       {% if proxmox.features|default(None) %} -features {{ proxmox.features }} {% endif %}
+      {% if proxmox.memory|default(None) %} -memory {{ proxmox.memory }} {% endif %}
+      -rootfs local-zfs:{{ proxmox.disk|default(4) }}
       --password {{ ansible_password|trim }}
       --nameserver {{ hostvars[proxmox.host].network.self_internal_ip }}
       --ostype {{ flavors[proxmox.flavor].pct_ostype }}