aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsclient
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-12 22:15:01 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-12 22:15:01 +0100
commitdb698b595e7ff088c96d00ef5285a0d634aff1be (patch)
tree4ec4242098a774e0de7ae1a4637b45b949e4ecce /roles/nfsclient
parentee3e324680a15d59429b1a2a0615fe787d169068 (diff)
downloadrules-db698b595e7ff088c96d00ef5285a0d634aff1be.tar.gz
refactor: pass ansible-lint with yaml header
Diffstat (limited to 'roles/nfsclient')
-rw-r--r--roles/nfsclient/defaults/main.yml2
-rw-r--r--roles/nfsclient/handlers/main.yml2
-rw-r--r--roles/nfsclient/tasks/main.yml2
-rw-r--r--roles/nfsclient/tasks/os_alpine.yml2
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
remember that computers suck.