This commit is contained in:
2026-05-17 11:32:07 +02:00
parent d25c30f858
commit 84c1c598cd
2 changed files with 26 additions and 28 deletions
+4 -6
View File
@@ -77,20 +77,20 @@
ansible.builtin.lineinfile:
path: /etc/exports
regexp: "^/srv/nfs .*"
line: "/srv/nfs 192.168.77.0/24(rw,sync,no_subtree_check,crossmnt,fsid=0) 192.168.80.0/24(rw,sync,no_subtree_check,crossmnt,fsid=0)"
line: "/srv/nfs 192.168.0.0/16(rw,sync,no_subtree_check,crossmnt,fsid=0)"
- name: Reconfigure nfs exports
ansible.builtin.lineinfile:
path: /etc/exports
regexp: "^/srv/nfs/docker_data .*"
line: "/srv/nfs/docker_data 192.168.77.0/24(rw,sync,no_subtree_check) 192.168.80.0/24(rw,sync,no_subtree_check)"
line: "/srv/nfs/docker_data 192.168.0.0/16(rw,sync,no_subtree_check)"
when: inventory_hostname != 'amd.home.lan'
- name: Reconfigure nfs exports
ansible.builtin.lineinfile:
path: /etc/exports
regexp: "^/srv/nfs/{{ volume }} .*"
line: "/srv/nfs/{{ volume }} 192.168.77.0/24(rw,sync,no_subtree_check) 192.168.80.0/24(rw,sync,no_subtree_check)"
line: "/srv/nfs/{{ volume }} 192.168.0.0/16(rw,sync,no_subtree_check)"
when: inventory_hostname == 'm-server.home.lan'
loop_control:
loop_var: volume
@@ -100,13 +100,11 @@
- movies
- shows
- name: Reconfigure nfs exports
ansible.builtin.lineinfile:
path: /etc/exports
regexp: "^/srv/nfs/backup .*"
line: "/srv/nfs/backup 192.168.77.0/24(rw,sync,no_subtree_check) 192.168.80.0/24(rw,sync,no_subtree_check)"
line: "/srv/nfs/backup 192.168.0.0/16(rw,sync,no_subtree_check)"
when: inventory_hostname == 'amd.home.lan'
- name: Restart nfs service
ansible.builtin.service: