Fixes #5: Start and enable rpcbind if not running.

This commit is contained in:
Jeff Geerling 2015-02-22 14:46:04 -06:00
parent e79549e61f
commit 81bd62a237
4 changed files with 12 additions and 0 deletions

3
handlers/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
- name: restart nfs server
service: "name={{ nfs_server_daemon }} state=restarted"

View file

@ -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
View file

@ -0,0 +1,2 @@
---
nfs_server_daemon: nfs-kernel-server

2
vars/RedHat.yml Normal file
View file

@ -0,0 +1,2 @@
---
nfs_server_daemon: nfs