ansible/roles/nfs-server/tasks/main.yml

17 lines
323 B
YAML
Raw Permalink Normal View History

2023-01-11 11:55:10 +01:00
---
- name: render /etc/exports
template:
src: exports.j2
dest: /etc/exports
mode: '0644'
register: exports
- name: alpine-specific nfs server tasks
include_tasks: alpine.yml
when: ansible_distribution == "Alpine"
- name: export nfs exports
command: /usr/sbin/exportfs -arv
when: exports.changed