diff options
Diffstat (limited to 'roles/nfsclient')
-rw-r--r-- | roles/nfsclient/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/nfsclient/handlers/main.yml | 2 | ||||
-rw-r--r-- | roles/nfsclient/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/nfsclient/tasks/os_alpine.yml | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/roles/nfsclient/defaults/main.yml b/roles/nfsclient/defaults/main.yml index d0ca08e..0fa26b2 100644 --- a/roles/nfsclient/defaults/main.yml +++ b/roles/nfsclient/defaults/main.yml @@ -1,3 +1,5 @@ +--- + nfsclient_dir: /data nfsclient_fstab_path: /etc/fstab nfsclient_server_dir: /data/nfs diff --git a/roles/nfsclient/handlers/main.yml b/roles/nfsclient/handlers/main.yml index ec156ea..3593da0 100644 --- a/roles/nfsclient/handlers/main.yml +++ b/roles/nfsclient/handlers/main.yml @@ -1,3 +1,5 @@ +--- + - name: reload fstab # noqa: command-instead-of-module ignore-errors ansible.builtin.command: mount -a ignore_errors: true diff --git a/roles/nfsclient/tasks/main.yml b/roles/nfsclient/tasks/main.yml index 205a7fa..9f717f4 100644 --- a/roles/nfsclient/tasks/main.yml +++ b/roles/nfsclient/tasks/main.yml @@ -1,3 +1,5 @@ +--- + - name: translate server string to server dict ansible.builtin.set_fact: nfsclient_server_ip: "{{ hostvars[nfsclient_server].__ip.external }}" diff --git a/roles/nfsclient/tasks/os_alpine.yml b/roles/nfsclient/tasks/os_alpine.yml index 73aebe8..1199dc8 100644 --- a/roles/nfsclient/tasks/os_alpine.yml +++ b/roles/nfsclient/tasks/os_alpine.yml @@ -1,3 +1,5 @@ +--- + - name: install nfs-utils ansible.builtin.package: name: nfs-utils |