aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsclient/tasks/main.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/nfsclient/tasks/main.yml
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/nfsclient/tasks/main.yml')
-rw-r--r--roles/nfsclient/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/nfsclient/tasks/main.yml b/roles/nfsclient/tasks/main.yml
index 0c1f75e..205a7fa 100644
--- a/roles/nfsclient/tasks/main.yml
+++ b/roles/nfsclient/tasks/main.yml
@@ -1,14 +1,14 @@
- name: translate server string to server dict
- set_fact:
+ ansible.builtin.set_fact:
nfsclient_server_ip: "{{ hostvars[nfsclient_server].__ip.external }}"
when: not nfsclient_server_ip
-- name: include distribution specific prerequisites
- include_tasks: "os_{{ ansible_distribution | lower }}.yml"
+- name: include distribution specific prerequisites # noqa: ignore-errors
+ ansible.builtin.include_tasks: "os_{{ ansible_distribution | lower }}.yml"
ignore_errors: true
- name: create directory on client
- file:
+ ansible.builtin.file:
path: "{{ nfsclient_dir }}"
owner: 0
group: 0
@@ -16,14 +16,14 @@
state: directory
- name: cleanup fstab with previous nfs setup
- lineinfile:
+ ansible.builtin.lineinfile:
path: "{{ nfsclient_fstab_path }}"
regexp: ^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:/.* {{ nfsclient_dir }} nfs
state: absent
register: result
- name: complete fstab with nfs
- lineinfile:
+ ansible.builtin.lineinfile:
path: "{{ nfsclient_fstab_path }}"
line: "{{ nfsclient_server_ip }}:{{ nfsclient_server_dir }}/{{ inventory_hostname }} {{ nfsclient_dir }} nfs rw,nodev,nosuid 0 0"
notify: reload fstab
remember that computers suck.