Adapt nfs_server_daemon for RHEL7

This commit is contained in:
Wei Tie 2016-02-02 11:49:25 +08:00
parent d25407f994
commit 6986526cc8
2 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,11 @@
# Include variables and define needed variables.
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
when: ansible_os_family == 'Debian' or (ansible_os_family == 'RedHat' and ansible_distribution_major_version != '7')
- name: Inlcude Redhat 7 variables
include_vars: Redhat-7.yml
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7"
# Setup/install tasks.
- include: setup-RedHat.yml

2
vars/Redhat-7.yml Normal file
View file

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