diff options
Diffstat (limited to 'roles/nfsd/tasks')
-rw-r--r-- | roles/nfsd/tasks/main.yml | 12 | ||||
-rw-r--r-- | roles/nfsd/tasks/os_freebsd.yml | 4 |
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 |