mirror of
https://github.com/geerlingguy/ansible-role-nfs
synced 2024-12-05 00:50:18 +01:00
Fixes #5: Start and enable rpcbind if not running.
This commit is contained in:
parent
e79549e61f
commit
81bd62a237
4 changed files with 12 additions and 0 deletions
3
handlers/main.yml
Normal file
3
handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
- name: restart nfs server
|
||||||
|
service: "name={{ nfs_server_daemon }} state=restarted"
|
|
@ -1,4 +1,8 @@
|
||||||
---
|
---
|
||||||
|
# Include variables and define needed variables.
|
||||||
|
- name: Include OS-specific variables.
|
||||||
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
# Setup/install tasks.
|
# Setup/install tasks.
|
||||||
- include: setup-RedHat.yml
|
- include: setup-RedHat.yml
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
@ -13,6 +17,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
notify: restart nfs server
|
||||||
|
|
||||||
# Configuration tasks.
|
# Configuration tasks.
|
||||||
- include: configure-RedHat.yml
|
- include: configure-RedHat.yml
|
||||||
|
|
2
vars/Debian.yml
Normal file
2
vars/Debian.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
nfs_server_daemon: nfs-kernel-server
|
2
vars/RedHat.yml
Normal file
2
vars/RedHat.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
nfs_server_daemon: nfs
|
Loading…
Reference in a new issue