infra/roles/nfs/handlers/main.yml

25 lines
381 B
YAML

---
- name: reload nfs-kernel-server
service:
name: nfs-kernel-server
state: reloaded
when:
- nfs_exports | length > 0
- name: exportfs -r
command: exportfs -r
become: true
- name: exportfs -a
command: exportfs -a
become: true
# - name: reload idmap
# service:
# name: idmap
# state: reloaded
# - name: call exportfs
# command: exportfs -a