Feat: ???

This commit is contained in:
Bertrand Benjamin 2020-01-02 19:13:11 +01:00
parent 9a2baf807b
commit 0b02860899
2 changed files with 16 additions and 8 deletions

View File

@ -36,7 +36,15 @@
service:
name: sshd
state: restarted
- name: restart nfs
- name: restart nfs-server
service:
name: nfs-server
state: restarted
- name: restart nfs-client
service:
name: nfs-client
state: restarted
- name: restart autofs
service:
name: autofs
state: restarted

View File

@ -4,19 +4,19 @@
name: autofs
state: present
- name: install nfs
apt:
pkg: nfs-kernel-server
state: present
when: ansible_distribution == 'Debian'
notify: restart nfs
#- name: install nfs
# apt:
# pkg: nfs-kernel-server
# state: present
# when: ansible_distribution == 'Debian'
# notify: restart nfs-server
- name: install nfs
pacman:
pkg: nfs-utils
state: present
when: ansible_distribution != 'Debian'
notify: restart nfs
notify: restart nfs-client
- name: Create NAS share directory
file: