From 94957cedaf99deb7456a98bdb3e3a4e873816bee Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 22 Aug 2022 12:06:52 +0300 Subject: fix: holywood2 NFS exports Sponsored-by: author --- ansible/roles/holywood2/files/exports | 8 ++++---- ansible/roles/holywood2/handlers/main.yml | 4 ++++ ansible/roles/holywood2/tasks/main.yml | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 ansible/roles/holywood2/handlers/main.yml (limited to 'ansible/roles/holywood2') diff --git a/ansible/roles/holywood2/files/exports b/ansible/roles/holywood2/files/exports index 5a04759..92dc38d 100644 --- a/ansible/roles/holywood2/files/exports +++ b/ansible/roles/holywood2/files/exports @@ -1,6 +1,6 @@ -/mnt/soile/pupu 10.0.0.154(rw,nohide,async,no_subtree_check,insecure) -/mnt/soile/pupu 10.0.0.204(rw,nohide,async,no_subtree_check,insecure) -/mnt/soile/pupu 10.1.1.0/24(rw,nohide,async,no_subtree_check,insecure) /mnt/soile/pupu 10.0.0.0/24(rw,nohide,async,no_subtree_check,insecure) -/mnt/media 10.0.0.204(ro,nohide,async,no_subtree_check,insecure) +/mnt/soile/pupu 10.1.1.0/24(rw,nohide,async,no_subtree_check,insecure) +/mnt/soile/pupu 10.2.2.0/24(rw,nohide,async,no_subtree_check,insecure) /mnt/media 10.0.0.0/24(ro,nohide,async,no_subtree_check,insecure) +/mnt/media 10.1.1.0/24(ro,nohide,async,no_subtree_check,insecure) +/mnt/media 10.2.2.0/24(ro,nohide,async,no_subtree_check,insecure) diff --git a/ansible/roles/holywood2/handlers/main.yml b/ansible/roles/holywood2/handlers/main.yml new file mode 100644 index 0000000..b067913 --- /dev/null +++ b/ansible/roles/holywood2/handlers/main.yml @@ -0,0 +1,4 @@ +- name: restart_nfsd + systemd: + name: nfs-server + state: restarted diff --git a/ansible/roles/holywood2/tasks/main.yml b/ansible/roles/holywood2/tasks/main.yml index eb5e539..1da48db 100644 --- a/ansible/roles/holywood2/tasks/main.yml +++ b/ansible/roles/holywood2/tasks/main.yml @@ -38,6 +38,7 @@ owner: root group: root mode: 0644 + notify: restart_nfsd - name: enable statd systemd: -- cgit v1.2.1