From a4c3a63cbdb9fde03e827f1b583e6131faba5bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 21 Dec 2021 17:42:23 +0000 Subject: roles/nfsclient: Pass ansible-lint posix.mount should be used and tested when possible --- roles/nfsclient/handlers/main.yml | 3 +++ roles/nfsclient/tasks/main.yml | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 roles/nfsclient/handlers/main.yml (limited to 'roles') 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 -- cgit v1.2.3