diff options
-rw-r--r-- | ansible/holywood2.yml | 3 | ||||
-rw-r--r-- | ansible/roles/holywood2/files/exports | 8 | ||||
-rw-r--r-- | ansible/roles/holywood2/handlers/main.yml | 4 | ||||
-rw-r--r-- | ansible/roles/holywood2/tasks/main.yml | 1 |
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: |