Punt the Samba server now that Devaron is on the wild side.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sat, 28 Jun 2025 02:19:23 +0000 (20:19 -0600)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sat, 28 Jun 2025 02:19:23 +0000 (20:19 -0600)
README.org
roles_t/abbey-core/handlers/main.yml
roles_t/abbey-core/tasks/main.yml

index dcb868f300c314fd3f5ba916fdc78f2547dca387..b5559e5c1940dd43717dc0604c64e1c565849758 100644 (file)
@@ -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
 
index 7db3b398d5f15beb14d1c342571fa73e602bf4dc..576d5189e671e5bde69768d4821247b7bcf503b9 100644 (file)
@@ -24,9 +24,3 @@
   systemd:
     service: munin
     state: restarted
-
-- name: New shares.
-  become: yes
-  systemd:
-    service: smbd
-    state: reloaded
index c9921b9fb129bbdce64418b69bac7cb1f1067120..d9ad277be24008dc6c8f2b7a69364ec1b3cfb64b 100644 (file)
 - 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.