fix: renamve notify service
This commit is contained in:
parent
44709dcf15
commit
5ea3343d45
@ -4,21 +4,21 @@
|
|||||||
pkg: nfs-kernel-server
|
pkg: nfs-kernel-server
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == 'Debian'
|
when: ansible_distribution == 'Debian'
|
||||||
notify: restart nfs
|
notify: restart nfs-server
|
||||||
|
|
||||||
- name: install nfs
|
- name: install nfs
|
||||||
pacman:
|
pacman:
|
||||||
pkg: nfs-utils
|
pkg: nfs-utils
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution != 'Debian'
|
when: ansible_distribution != 'Debian'
|
||||||
notify: restart nfs
|
notify: restart nfs-server
|
||||||
|
|
||||||
- name: Lines in exports
|
- name: Lines in exports
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/exports
|
dest: /etc/exports
|
||||||
line: "{{ item.name }} 192.168.1.1/24({{ item.options }})"
|
line: "{{ item.name }} 192.168.1.1/24({{ item.options }})"
|
||||||
with_items: "{{ nfs_shares }}"
|
with_items: "{{ nfs_shares }}"
|
||||||
notify: restart nfs
|
notify: restart nfs-server
|
||||||
|
|
||||||
- name: create mount points
|
- name: create mount points
|
||||||
file:
|
file:
|
||||||
@ -35,4 +35,4 @@
|
|||||||
passno: 0
|
passno: 0
|
||||||
state: mounted
|
state: mounted
|
||||||
with_items: "{{ nfs_shares }}"
|
with_items: "{{ nfs_shares }}"
|
||||||
notify: restart nfs
|
notify: restart nfs-server
|
||||||
|
Loading…
Reference in New Issue
Block a user