aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/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/nfsd/tasks/main.yml
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/nfsd/tasks/main.yml')
-rw-r--r--roles/nfsd/tasks/main.yml12
1 files changed, 6 insertions, 6 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
remember that computers suck.