fix: renamve notify service
This commit is contained in:
parent
44709dcf15
commit
5ea3343d45
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user