mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-10-30 09:51:10 +01:00
This commit is contained in:
@@ -35,7 +35,18 @@
|
|||||||
opts: bind
|
opts: bind
|
||||||
state: mounted
|
state: mounted
|
||||||
fstype: none
|
fstype: none
|
||||||
|
- name: Reconfigure nfs fstab
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /etc/fstab
|
||||||
|
regexp: "^/media/m-server/downloads .*"
|
||||||
|
line: "/media/m-server/downloads /srv/nfs/downloads none bind 0 0"
|
||||||
|
when: inventory_hostname == 'm-server.home.lan'
|
||||||
|
- name: Reconfigure nfs exports
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /etc/fstab
|
||||||
|
regexp: "^/share/docker_data .*"
|
||||||
|
line: "/share/docker_data /srv/nfs/docker_data none bind 0 0"
|
||||||
|
when: inventory_hostname == 'm-server.home.lan'
|
||||||
|
|
||||||
- name: Reconfigure nfs exports
|
- name: Reconfigure nfs exports
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
@@ -43,7 +54,6 @@
|
|||||||
regexp: "^/srv/nfs .*"
|
regexp: "^/srv/nfs .*"
|
||||||
line: "/srv/nfs 192.168.77.0/24(rw,sync,no_subtree_check,crossmnt,fsid=0)"
|
line: "/srv/nfs 192.168.77.0/24(rw,sync,no_subtree_check,crossmnt,fsid=0)"
|
||||||
|
|
||||||
|
|
||||||
- name: Reconfigure nfs exports
|
- name: Reconfigure nfs exports
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/exports
|
path: /etc/exports
|
||||||
|
|||||||
Reference in New Issue
Block a user