aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd
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/nfsd
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/nfsd')
-rw-r--r--roles/nfsd/tasks/main.yml12
-rw-r--r--roles/nfsd/tasks/os_freebsd.yml4
2 files changed, 8 insertions, 8 deletions
diff --git a/roles/nfsd/tasks/main.yml b/roles/nfsd/tasks/main.yml
index a8cabcf..ca562d8 100644
--- a/roles/nfsd/tasks/main.yml
+++ b/roles/nfsd/tasks/main.yml
@@ -1,5 +1,5 @@
- name: create nfsd data directory
- file:
+ ansible.builtin.file:
path: "{{ nfsd_dir }}"
owner: 0
group: 0
@@ -7,7 +7,7 @@
state: directory
- name: create hosts directories
- file:
+ ansible.builtin.file:
path: "{{ nfsd_dir }}/{{ item }}"
owner: 0
group: 0
@@ -16,7 +16,7 @@
loop: "{{ nfsd_shared_dirs }}"
- name: generate nfsd configuration
- template:
+ ansible.builtin.template:
src: exports.j2
dest: /etc/exports
owner: 0
@@ -25,19 +25,19 @@
register: result
- name: enable and restart portmap
- service: &enable_and_restart
+ ansible.builtin.service: &enable_and_restart
name: portmap
state: restarted
enabled: true
- name: enable and reload/restart mountd
- service:
+ ansible.builtin.service:
<<: *enable_and_restart
name: mountd
state: reloaded
- name: enable and restart nfsd
- service:
+ ansible.builtin.service:
<<: *enable_and_restart
name: nfsd
state: restarted
diff --git a/roles/nfsd/tasks/os_freebsd.yml b/roles/nfsd/tasks/os_freebsd.yml
index 2a8a8cd..d1601c8 100644
--- a/roles/nfsd/tasks/os_freebsd.yml
+++ b/roles/nfsd/tasks/os_freebsd.yml
@@ -1,5 +1,5 @@
- name: edit daemons flags
- lineinfile:
+ ansible.builtin.lineinfile:
path: /etc/rc.conf
regexp: "^{{ item[0] }}="
line: "{{ item[0] }}=\"{{ item[1] }}\""
@@ -9,7 +9,7 @@
- ["mountd_flags", "-r"]
- name: enable and restart rpcbind
- service:
+ ansible.builtin.service:
name: rpcbind
state: restarted
enabled: true
remember that computers suck.