summaryrefslogtreecommitdiff
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
parent1f56dee48ce0dffedb6b60eae0965e8151f34061 (diff)
downloadansibleness-94957cedaf99deb7456a98bdb3e3a4e873816bee.tar.gz
fix: holywood2 NFS exports
Sponsored-by: author
-rw-r--r--ansible/holywood2.yml3
-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
4 files changed, 11 insertions, 5 deletions
diff --git a/ansible/holywood2.yml b/ansible/holywood2.yml
index fc3101c..b37a1b7 100644
--- a/ansible/holywood2.yml
+++ b/ansible/holywood2.yml
@@ -8,7 +8,8 @@
- version-controller
- unix_users
- apache_server
- - holywood2
+ - role: holywood2
+ tags: holywood2
- smarthost-client
- self-updating-system
tasks:
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: