fix: renamve notify service

This commit is contained in:
Bertrand Benjamin 2020-03-14 11:10:11 +01:00
parent 44709dcf15
commit 5ea3343d45

View File

@ -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