add key for gitea

This commit is contained in:
vincent 2020-02-07 19:30:02 +01:00
parent 7ae1647e61
commit cf2770afd7
3 changed files with 30 additions and 0 deletions

View File

@ -314,3 +314,16 @@ hass_db_password: "{{ vault_mysql_hass }}"
hass_repo: gitea@git.{{ domain.name }}:vincent/HASS_conf.git hass_repo: gitea@git.{{ domain.name }}:vincent/HASS_conf.git
hass_user: "{{user.name}}" 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 }}"

View File

@ -49,6 +49,16 @@ systemd_mounts:
- gid=100 - gid=100
- vers=3.0 - vers=3.0
automount: true 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: systemd_mounts_enabled:
@ -57,6 +67,7 @@ systemd_mounts_enabled:
- diskstation_ebook - diskstation_ebook
- diskstation_photo - diskstation_photo
- diskstation_home - diskstation_home
- oscar_hassconfig
credentials_files: credentials_files:
1: 1:
@ -64,3 +75,8 @@ credentials_files:
path: /etc/creds/.diskstation_credentials path: /etc/creds/.diskstation_credentials
username: admin username: admin
password: "{{ vault_default_password }}" password: "{{ vault_default_password }}"
2:
type: smb
path: /etc/creds/.oscar_credentials
username: "{{user.name}}"
password: "{{ vault_default_password }}"

View File

@ -25,6 +25,7 @@
- gitea - gitea
- supysonic - supysonic
- hass - hass
- {role: ansible-role-samba , become: yes }
- chainetv - chainetv
- user_config - user_config