This commit is contained in:
2025-11-18 22:02:33 +01:00
parent b986b5182e
commit 0aaa0e0a30
2 changed files with 15 additions and 1 deletions

View File

@@ -30,7 +30,16 @@
owner: root
group: root
when: inventory_hostname != 'm-server.home.lan'
- name: Creating a file with content
ansible.builtin.copy:
dest: "/etc/auto.amd"
content: |
backup -fstype=nfs amd.home.lan:/backup
mode: '0600'
owner: root
group: root
when: inventory_hostname == 'm-server.home.lan'
- name: Creating a file with content
ansible.builtin.copy:
dest: "/etc/auto.rack"
@@ -192,6 +201,11 @@
path: /etc/auto.master
regexp: "^/media/rpi5.*"
line: /media/rpi5 /etc/auto.rpi5 --timeout 360 --ghost
- name: Reconfigure autofs Server
ansible.builtin.lineinfile:
path: /etc/auto.master
regexp: "^/media/amd.*"
line: /media/amd /etc/auto.amd --timeout 360 --ghost
- name: Restart docker service
ansible.builtin.service:

View File

@@ -33,7 +33,7 @@
- name: Mount and bind a volume
ansible.posix.mount:
path: /srv/nfs/backup
src: /mnt/raid/downloads
src: /mnt/raid/backup
opts: bind
state: mounted
fstype: none