diff --git a/group_vars/server b/group_vars/server index 9e70fad..824dc9b 100644 --- a/group_vars/server +++ b/group_vars/server @@ -314,3 +314,16 @@ hass_db_password: "{{ vault_mysql_hass }}" hass_repo: gitea@git.{{ domain.name }}:vincent/HASS_conf.git hass_user: "{{user.name}}" +samba_shares: + - name: hassconfig + path: /var/lib/hass + read_only: no + writable: yes + directory_mode: 770 + owner: hass + group: hass + + write_list: "{{user.name}}" +samba_users: + - name: "{{user.name}}" + password: "{{ vault_default_password }}" \ No newline at end of file diff --git a/group_vars/workstation b/group_vars/workstation index 2847db1..bcc791a 100644 --- a/group_vars/workstation +++ b/group_vars/workstation @@ -49,6 +49,16 @@ systemd_mounts: - gid=100 - vers=3.0 automount: true + oscar_hassconfig: + share: //oscar/hassconfig + mount: /mnt/oscar/hassconfig + type: cifs + options: + - credentials=/etc/creds/.oscar_credentials + - uid=1024 + - gid=100 + - vers=3.0 + automount: true systemd_mounts_enabled: @@ -57,6 +67,7 @@ systemd_mounts_enabled: - diskstation_ebook - diskstation_photo - diskstation_home + - oscar_hassconfig credentials_files: 1: @@ -64,3 +75,8 @@ credentials_files: path: /etc/creds/.diskstation_credentials username: admin password: "{{ vault_default_password }}" + 2: + type: smb + path: /etc/creds/.oscar_credentials + username: "{{user.name}}" + password: "{{ vault_default_password }}" diff --git a/server.yml b/server.yml index b830eba..5ed5b86 100644 --- a/server.yml +++ b/server.yml @@ -25,6 +25,7 @@ - gitea - supysonic - hass + - {role: ansible-role-samba , become: yes } - chainetv - user_config