summaryrefslogtreecommitdiff
path: root/ansible/roles/holywood2
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-08-22 12:06:52 +0300
committerLars Wirzenius <liw@liw.fi>2022-08-22 12:06:52 +0300
commit94957cedaf99deb7456a98bdb3e3a4e873816bee (patch)
tree9db2a0354ed562ba340f046f2d7ca556126ba34b /ansible/roles/holywood2
parent1f56dee48ce0dffedb6b60eae0965e8151f34061 (diff)
downloadansibleness-94957cedaf99deb7456a98bdb3e3a4e873816bee.tar.gz
fix: holywood2 NFS exports
Sponsored-by: author
Diffstat (limited to 'ansible/roles/holywood2')
-rw-r--r--ansible/roles/holywood2/files/exports8
-rw-r--r--ansible/roles/holywood2/handlers/main.yml4
-rw-r--r--ansible/roles/holywood2/tasks/main.yml1
3 files changed, 9 insertions, 4 deletions
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: