From 4732d4964e13b1ce77ce2b25cd3a6e556e230c90 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Fri, 27 Jun 2025 20:19:23 -0600 Subject: [PATCH] Punt the Samba server now that Devaron is on the wild side. --- README.org | 72 ---------------------------- roles_t/abbey-core/handlers/main.yml | 6 --- roles_t/abbey-core/tasks/main.yml | 47 ------------------ 3 files changed, 125 deletions(-) diff --git a/README.org b/README.org index dcb868f..b5559e5 100644 --- a/README.org +++ b/README.org @@ -1448,78 +1448,6 @@ Monkey's photo processing scripts use ~netpbm~ commands like apt: pkg=netpbm #+END_SRC -** Install Samba - -The abbey core provides NAS (Network Attached Storage) service to the -cloister network. It also provides writable shares for a Home -Assistant appliance (Raspberry Pi). - -- Install ~samba~. -- Create system user ~hass~. -- Create =/home/hass/{media,backup,share}/= with appropriate - permissions. - -#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]] -#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml - -- name: Install Samba. - become: yes - apt: pkg=samba - -- name: Add system user hass. - become: yes - user: - name: hass - system: yes - -- name: Add {{ ansible_user }} to hass group. - become: yes - user: - name: "{{ ansible_user }}" - append: yes - groups: hass - -- name: Configure shares. - become: yes - blockinfile: - block: | - [Shared] - path = /Shared - guest ok = yes - read only = yes - - [HASS-backup] - comment = Home Assistant backup - path = /home/hass/backup - valid users = hass - read only = no - - [HASS-media] - comment = Home Assistant media - path = /home/hass/media - valid users = hass - read only = yes - - [HASS-share] - comment = Home Assistant share - path = /home/hass/share - valid users = hass - read only = no - dest: /etc/samba/smb.conf - marker: "# {mark} ABBEY MANAGED BLOCK" - notify: New shares. -#+END_SRC - -#+CAPTION: [[file:roles_t/abbey-core/handlers/main.yml][=roles_t/abbey-core/handlers/main.yml=]] -#+BEGIN_SRC conf :tangle roles_t/abbey-core/handlers/main.yml - -- name: New shares. - become: yes - systemd: - service: smbd - state: reloaded -#+END_SRC - * The Abbey Gate Role diff --git a/roles_t/abbey-core/handlers/main.yml b/roles_t/abbey-core/handlers/main.yml index 7db3b39..576d518 100644 --- a/roles_t/abbey-core/handlers/main.yml +++ b/roles_t/abbey-core/handlers/main.yml @@ -24,9 +24,3 @@ systemd: service: munin state: restarted - -- name: New shares. - become: yes - systemd: - service: smbd - state: reloaded diff --git a/roles_t/abbey-core/tasks/main.yml b/roles_t/abbey-core/tasks/main.yml index c9921b9..d9ad277 100644 --- a/roles_t/abbey-core/tasks/main.yml +++ b/roles_t/abbey-core/tasks/main.yml @@ -313,50 +313,3 @@ - name: Install netpbm. become: yes apt: pkg=netpbm - -- name: Install Samba. - become: yes - apt: pkg=samba - -- name: Add system user hass. - become: yes - user: - name: hass - system: yes - -- name: Add {{ ansible_user }} to hass group. - become: yes - user: - name: "{{ ansible_user }}" - append: yes - groups: hass - -- name: Configure shares. - become: yes - blockinfile: - block: | - [Shared] - path = /Shared - guest ok = yes - read only = yes - - [HASS-backup] - comment = Home Assistant backup - path = /home/hass/backup - valid users = hass - read only = no - - [HASS-media] - comment = Home Assistant media - path = /home/hass/media - valid users = hass - read only = yes - - [HASS-share] - comment = Home Assistant share - path = /home/hass/share - valid users = hass - read only = no - dest: /etc/samba/smb.conf - marker: "# {mark} ABBEY MANAGED BLOCK" - notify: New shares. -- 2.25.1