From 0df015e9b5c4aefd4245c94ee98021d2af80ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 22 Oct 2022 16:41:45 +0200 Subject: lint: pass ansible-lint + yamllint --- roles/nfsd/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'roles/nfsd/tasks/main.yml') 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 -- cgit v1.2.3