fix: add smb mount

This commit is contained in:
Rasmus Wejlgaard 2026-05-14 20:27:44 +01:00
parent 5481292b7f
commit 99e745bb08

View file

@ -19,7 +19,7 @@
content: "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription\n" content: "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription\n"
owner: root owner: root
group: root group: root
mode: '0644' mode: "0644"
notify: Update apt cache notify: Update apt cache
- name: Update apt cache - name: Update apt cache
@ -38,9 +38,28 @@
- name: Allow Proxmox web UI on Tailscale only - name: Allow Proxmox web UI on Tailscale only
community.general.ufw: community.general.ufw:
rule: allow rule: allow
port: '8006' port: "8006"
proto: tcp proto: tcp
interface: tailscale0 interface: tailscale0
direction: in direction: in
comment: "Proxmox web UI - Tailscale only" comment: "Proxmox web UI - Tailscale only"
notify: Reload ufw 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