homeserver/roles/mgrote_fileserver_smb/README.md
Michael Grote 28f22968da
Some checks failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
ci/woodpecker/push/ansible-playbook Pipeline failed
ci: deploy config on merge or push (#127)
Reviewed-on: #127
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>

ci: testing deployment (#128)

Reviewed-on: #128
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>

ci: test

ci: enable deployment

ci: set ssh-key for deployment

ci: debug

ci: deactivate ansible-lint temporarily

ci: deactivate ansible-galaxy temporarily

ci: debug ssh-key shell redirect

ci: base64

ci: debug

ci: debug

ci: fix output

Revert "ci: deactivate ansible-lint temporarily"

This reverts commit 6729342f26.

ci: fix vault-pass secret

pbs_integration: enable no_log

ci: debug ansible-vault

ci: debug

ci: ansible-vault + move to viczem.keepass (#130)

Reviewed-on: #130
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>

ff

plugin umbennennugn

ff
2024-07-09 22:27:57 +02:00

2.1 KiB

mgrote.fileserver_smb

Beschreibung

Installiert und konfiguriert einen Fileserver mit Samba.

Rechte

Rechte im Dateisystem sind

  • chown -R root:users /shares/
  • chmod -R 777 /shares/
  • alle Nutzer sind Mitglied der Gruppe "users"
  • in Samba(global)
    • force user = root
    • force group = users Damit werden die Nutzer mit Ihrem Konto auf die SAMBA-Freigabe berechtigt, aber die Lese/Schreiboperationen auf dem Dateisystem als "root" durchgefuehrt.

getestet auf

  • Ubuntu (>=20.04)

Samba Version

Possible values are :
SMB2_02: The earliest SMB2 version.
SMB2_10: Windows 7 SMB2 version.
SMB2_22: Early Windows 8 SMB2 version.
SMB2_24: Windows 8 beta SMB2 version.
SMB3: The same as SMB2. Used by Windows 8. SMB3 has sub protocols available.
SMB3_00: Windows 8 SMB3 version. (mostly the same as SMB2_24)
SMB3_02: Windows 8.1 SMB3 version.
SMB3_10: early Windows 10 technical preview SMB3 version.
SMB3_11: Windows 10 technical preview SMB3 version (maybe final).

Variablen

Nutzer

  smb_users:
    - name: 'annemariedroessler' # Nutzername
      password: "{{ lookup('viczem.keepass.keepass', 'fileserver_smb_user_amd', 'password') }}" # Passwort als Klartext
      state: present # Status(default: present)
      remove_dir: false # removes homedir if state is absent und remove_dir is true (default: false)
      ```

#### Freigaben

smb_shares: - name: 'videos' # Freigabename path: '/shares_videos' # Pfad auf SMB-Server users_ro: ' win10 kodi' # Nutzer - Lesezugriff users_rw: 'annemariedroessler michaelgrote' # Nutzer - Schreibzugriff # Optional(+default-values) item.guest ok: "no" item.read only: "no" browseable: "yes" inherit acls: "yes" inherit permissions: "no" ea support: "no" store dos attributes: "no" printable: "no" create mask: "0664" force create mode: "0664" directory mask: "0775" force directory_mode: "0775" hide special files: "yes" follow symlinks: "yes" hide dot files: "no"


### weitere Variablen + Defaults
siehe [defaults](./defaults/main.yml)