From d91cd8bfa0900bb3eea83bfd9746ccbc10f4ae85 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 17 Jun 2015 16:31:00 -0500 Subject: [PATCH] testnode: enable nfs-server on rhel 7.x In the port from ceph-qa-chef I decided to enable nfs-server by default on all distros even though chef only enabled it for rhel 7.x. We've since discovered that enabling it on vivid causes errors, so we're not enabling it for all distros anymore. This makes sure we enable it still on rhel 7.x. Signed-off-by: Andrew Schoen --- roles/testnode/tasks/nfs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/testnode/tasks/nfs.yml b/roles/testnode/tasks/nfs.yml index 9ba641f9..71046550 100644 --- a/roles/testnode/tasks/nfs.yml +++ b/roles/testnode/tasks/nfs.yml @@ -9,3 +9,10 @@ notify: - start rpcbind - restart nfs-server + +- name: Enable nfs-server on rhel 7.x. + service: + name: "{{ nfs_service }}" + enabled: true + when: ansible_distribution == "RedHat" and + ansible_distribution_major_version == "7" -- 2.47.3