diff --git a/tasks/nfs_share.yml b/tasks/nfs_share.yml index f7b518d..12a1e58 100644 --- a/tasks/nfs_share.yml +++ b/tasks/nfs_share.yml @@ -4,21 +4,21 @@ pkg: nfs-kernel-server state: present when: ansible_distribution == 'Debian' - notify: restart nfs + notify: restart nfs-server - name: install nfs pacman: pkg: nfs-utils state: present when: ansible_distribution != 'Debian' - notify: restart nfs + notify: restart nfs-server - name: Lines in exports lineinfile: dest: /etc/exports line: "{{ item.name }} 192.168.1.1/24({{ item.options }})" with_items: "{{ nfs_shares }}" - notify: restart nfs + notify: restart nfs-server - name: create mount points file: @@ -35,4 +35,4 @@ passno: 0 state: mounted with_items: "{{ nfs_shares }}" - notify: restart nfs + notify: restart nfs-server