From 061b5eb734f95c3beb769389e732f4e7fafacc7f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 16 May 2014 15:27:40 +0000 Subject: [PATCH] Make this task work with rhel and fedora releng hosts. --- tasks/koji/releng_config.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks/koji/releng_config.yml b/tasks/koji/releng_config.yml index fd82b65f41..3962296bcb 100644 --- a/tasks/koji/releng_config.yml +++ b/tasks/koji/releng_config.yml @@ -109,11 +109,21 @@ tags: - configs -- name: enable nfs-related services and run them +- name: enable nfs-related services and run them (fedora) action: service name={{ item }} enabled=true state=started with_items: - nfs-idmapd - nfs-lock + when: ansible_distribution == 'Fedora' + +- name: enable nfs-related services and run them (rhel) + action: service name={{ item }} enabled=true state=started + with_items: + - rpcidmapd + - rpcbind + - nfs + - nfslock + when: ansible_distribution == 'RedHat' - name: route to netapp network action: copy src="{{ files }}/../roles/koji_builder/files/route-eth1" dest=/etc/sysconfig/network-scripts/route-eth1