aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/tasks/main.yml
diff options
context:
space:
mode:
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.