From: Andrew Schoen Date: Wed, 17 Jun 2015 21:31:00 +0000 (-0500) Subject: testnode: enable nfs-server on rhel 7.x X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d91cd8bfa0900bb3eea83bfd9746ccbc10f4ae85;p=ceph-cm-ansible.git 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 --- 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"