Add Samba to pi-media-1

[that was easy]
This commit is contained in:
Salt 2021-10-07 10:39:20 -05:00
parent 50fe9a0f3e
commit cf60d672b7
3 changed files with 25 additions and 0 deletions

View File

@ -300,6 +300,13 @@ secret_pia_pass: !vault |
62313265633338356436393033353438666634363536613266346139666364613238396338363731 62313265633338356436393033353438666634363536613266346139666364613238396338363731
6633666366353538300a613965633766653332613465326137396562313230343161346162343762 6633666366353538300a613965633766653332613465326137396562313230343161346162343762
37643164663466343166346534303932613763643965623066353336363238643266 37643164663466343166346534303932613763643965623066353336363238643266
samba_user_salt_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
37653638663161373330616137323239633039653739623833663035303533333265336531313731
3936356261323432653132323537333664353361353939360a313161626436373837653930316463
39343937636261653033393734643739343936323465356531623836646334653362653935623338
3966343739353864630a306564656362386534666663346238666664326531303364343937623134
39333564313166356239386233646431313464346563323239366432363931303338
# For Steam games # For Steam games
steam_username: !vault | steam_username: !vault |

View File

@ -111,3 +111,18 @@
nfs_exports: nfs_exports:
- "/data/shared/media 192.168.0.0/16(ro,no_root_squash,sync) 172.23.0.0/16(ro,no_root_squash,sync)" - "/data/shared/media 192.168.0.0/16(ro,no_root_squash,sync) 172.23.0.0/16(ro,no_root_squash,sync)"
tags: [ pis, storage, nfs ] tags: [ pis, storage, nfs ]
- role: bertvv.samba
vars:
samba_users:
- name: salt
password: "{{ samba_user_salt_password }}"
samba_shares:
- name: media
browseable: yes
comment: 'Media downloaded by that one Pi'
group: 911
guest_ok: yes
owner: 911
public: yes
path: /data/shared/media
tags: [ pis, storage, samba, smb ]

View File

@ -4,6 +4,9 @@
collections: collections:
- netbox.netbox - netbox.netbox
roles: roles:
# Upstream: https://github.com/bertvv/ansible-role-samba
- src: bertvv.samba
version: v2.7.1
# Upstream: https://github.com/geerlingguy/ansible-role-docker # Upstream: https://github.com/geerlingguy/ansible-role-docker
- src: geerlingguy.docker - src: geerlingguy.docker
version: 3.0.0 version: 3.0.0