From cf2770afd78e1f1b2df0d33bdaf463eb4d933e6a Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 7 Feb 2020 19:30:02 +0100 Subject: [PATCH] add key for gitea --- group_vars/server | 13 +++++++++++++ group_vars/workstation | 16 ++++++++++++++++ server.yml | 1 + 3 files changed, 30 insertions(+) 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