diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/nfsclient/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/nfsclient/tasks/main.yml | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/nfsclient/handlers/main.yml b/roles/nfsclient/handlers/main.yml new file mode 100644 index 0000000..e6bc07e --- /dev/null +++ b/roles/nfsclient/handlers/main.yml @@ -0,0 +1,3 @@ +- name: reload fstab # noqa: command-instead-of-module ignore-errors + command: mount -a + ignore_errors: true diff --git a/roles/nfsclient/tasks/main.yml b/roles/nfsclient/tasks/main.yml index 7799a60..0c1f75e 100644 --- a/roles/nfsclient/tasks/main.yml +++ b/roles/nfsclient/tasks/main.yml @@ -26,7 +26,4 @@ lineinfile: path: "{{ nfsclient_fstab_path }}" line: "{{ nfsclient_server_ip }}:{{ nfsclient_server_dir }}/{{ inventory_hostname }} {{ nfsclient_dir }} nfs rw,nodev,nosuid 0 0" - -- name: reload fstab - shell: mount -a - ignore_errors: true + notify: reload fstab |