2021-11-21 21:53:35 +00:00
|
|
|
- name: Install CIFS utils
|
|
|
|
package:
|
|
|
|
name: cifs-utils
|
|
|
|
|
|
|
|
- name: Create dir for CIFS mount
|
|
|
|
file:
|
|
|
|
path: /mnt/home-assistant
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
|
|
|
|
- name: Create dir for each CIFS mount
|
|
|
|
file:
|
|
|
|
path: /mnt/home-assistant/{{ item }}
|
|
|
|
state: directory
|
|
|
|
mode: "0600"
|
|
|
|
loop: "{{ restic_homeassistant_mounts }}"
|
|
|
|
|
|
|
|
- name: Create mounts
|
|
|
|
mount:
|
|
|
|
path: /mnt/home-assistant/{{ item }}
|
|
|
|
fstype: cifs
|
2024-01-03 21:23:49 +00:00
|
|
|
opts: username=homeassistant,password={{ vault_homeassistant_smb_password }}
|
2021-11-21 21:53:35 +00:00
|
|
|
src: //{{ pve_hosts.homeassistant.ip }}/{{ item }}
|
|
|
|
state: mounted
|
|
|
|
loop: "{{ restic_homeassistant_mounts }}"
|