From 5693f8e8104f98dfb42158404ef38d00c747756c Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Sun, 12 Jan 2025 15:31:37 +0100 Subject: [PATCH] feat: configure lxc templates in proxmox --- .../ferrarimarco_home_lab_proxmox/tasks/main.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/ansible/roles/ferrarimarco_home_lab_proxmox/tasks/main.yaml b/config/ansible/roles/ferrarimarco_home_lab_proxmox/tasks/main.yaml index cee5b7533..e36a44f9c 100644 --- a/config/ansible/roles/ferrarimarco_home_lab_proxmox/tasks/main.yaml +++ b/config/ansible/roles/ferrarimarco_home_lab_proxmox/tasks/main.yaml @@ -56,6 +56,18 @@ checksum: "sha512:https://cloud.debian.org/images/cloud/bookworm/20241110-1927/SHA512SUMS" dest: "{{ proxmox_raws_directory_path }}" +- name: Update LXC templates list + ansible.builtin.command: | + pveam update + +- name: Download LXC templates + ansible.builtin.command: | + pveam download + local + "{{ item.lxc_template_id }}" + with_items: + - item.lxc_template_id: debian-12-turnkey-fileserver_18.0-1_amd64.tar.gz + - name: Delete old images and disks ansible.builtin.file: path: "{{ item.path }}"