From 99e745bb083f12ab0e9d76dea648f093a443e390 Mon Sep 17 00:00:00 2001 From: Rasmus Wejlgaard Date: Thu, 14 May 2026 20:27:44 +0100 Subject: [PATCH] fix: add smb mount --- ansible/roles/proxmox_ve/tasks/main.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/ansible/roles/proxmox_ve/tasks/main.yml b/ansible/roles/proxmox_ve/tasks/main.yml index 3b427f1..28bcddd 100644 --- a/ansible/roles/proxmox_ve/tasks/main.yml +++ b/ansible/roles/proxmox_ve/tasks/main.yml @@ -19,7 +19,7 @@ content: "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription\n" owner: root group: root - mode: '0644' + mode: "0644" notify: Update apt cache - name: Update apt cache @@ -38,9 +38,28 @@ - name: Allow Proxmox web UI on Tailscale only community.general.ufw: rule: allow - port: '8006' + port: "8006" proto: tcp interface: tailscale0 direction: in comment: "Proxmox web UI - Tailscale only" notify: Reload ufw + +# --- Storage --- + +- name: Check if hdd CIFS storage is configured + ansible.builtin.command: pvesh get /storage/hdd + register: pve_hdd_check + changed_when: false + failed_when: false + +- name: Add hdd CIFS storage (london-b /pve share) + ansible.builtin.command: >- + pvesm add cifs hdd + --server 100.84.65.101 + --share pve + --username {{ proxmox_hdd_user }} + --password {{ proxmox_hdd_password }} + --content images,backup,import,snippets,vztmpl,rootdir,iso + no_log: true + when: pve_hdd_check.rc != 0