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: service:
name: sshd name: sshd
state: restarted state: restarted
- name: restart nfs - name: restart nfs-server
service: service:
name: nfs-server name: nfs-server
state: restarted 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 name: autofs
state: present state: present
- name: install nfs #- name: install nfs
apt: # apt:
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-client
- name: Create NAS share directory - name: Create NAS share directory
file: file: