From a9684648ab4fbd6b5ae037e45a037e79b9d78d42 Mon Sep 17 00:00:00 2001
From: Alexander Block <ablock84@gmail.com>
Date: Thu, 15 Dec 2016 10:11:16 +0100
Subject: [PATCH] Fix wrong path for dhclient.conf on RedHat/CentOS

/etc/dhclient.conf is ignored on RedHat/CentOS
Correct location is /etc/dhcp/dhclient.conf
---
 roles/kubernetes/preinstall/tasks/set_resolv_facts.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml b/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml
index da8664e36..d3a0f58e2 100644
--- a/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml
+++ b/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml
@@ -43,7 +43,7 @@
 
 - name: target dhclient conf/hook files for Red Hat family
   set_fact:
-    dhclientconffile: /etc/dhclient.conf
+    dhclientconffile: /etc/dhcp/dhclient.conf
     dhclienthookfile: /etc/dhcp/dhclient.d/zdnsupdate.sh
   when: ansible_os_family == "RedHat"
 
-- 
GitLab