From 6986526cc800064e01d54c7362eab1a4db4555e3 Mon Sep 17 00:00:00 2001 From: Wei Tie Date: Tue, 2 Feb 2016 11:49:25 +0800 Subject: [PATCH] Adapt nfs_server_daemon for RHEL7 --- tasks/main.yml | 5 +++++ vars/Redhat-7.yml | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 vars/Redhat-7.yml diff --git a/tasks/main.yml b/tasks/main.yml index b3fae7d..6a00ec3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/vars/Redhat-7.yml b/vars/Redhat-7.yml new file mode 100644 index 0000000..0538858 --- /dev/null +++ b/vars/Redhat-7.yml @@ -0,0 +1,2 @@ +--- +nfs_server_daemon: nfs-server