From bfc9bcb8c77d4d1c5e88bfdf9eddbf7ad2e670d5 Mon Sep 17 00:00:00 2001
From: Matthew Mosesohn <mmosesohn@mirantis.com>
Date: Wed, 7 Dec 2016 19:03:04 +0300
Subject: [PATCH] Force hardlink for calico/canal certs

Fixes: #669
---
 roles/network_plugin/calico/tasks/main.yml | 1 +
 roles/network_plugin/canal/tasks/main.yml  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/roles/network_plugin/calico/tasks/main.yml b/roles/network_plugin/calico/tasks/main.yml
index 06c95eb56..e31be114d 100644
--- a/roles/network_plugin/calico/tasks/main.yml
+++ b/roles/network_plugin/calico/tasks/main.yml
@@ -18,6 +18,7 @@
     src: "{{ etcd_cert_dir }}/{{ item.s }}"
     dest: "{{ calico_cert_dir }}/{{ item.d }}"
     state: hard
+    force: yes
   with_items:
     - {s: "ca.pem", d: "ca_cert.crt"}
     - {s: "node.pem", d: "cert.crt"}
diff --git a/roles/network_plugin/canal/tasks/main.yml b/roles/network_plugin/canal/tasks/main.yml
index 1566362f1..83f398a54 100644
--- a/roles/network_plugin/canal/tasks/main.yml
+++ b/roles/network_plugin/canal/tasks/main.yml
@@ -18,6 +18,7 @@
     src: "{{ etcd_cert_dir }}/{{ item.s }}"
     dest: "{{ canal_cert_dir }}/{{ item.d }}"
     state: hard
+    force: yes
   with_items:
     - {s: "ca.pem", d: "ca_cert.crt"}
     - {s: "node.pem", d: "cert.crt"}
-- 
GitLab