From 67832aada937cf1d45eca60a47b7678bea8d0ef1 Mon Sep 17 00:00:00 2001
From: hikoz <t@fo.x0.to>
Date: Tue, 26 Feb 2019 13:09:30 +0900
Subject: [PATCH] changed_when:false (#4189)

---
 roles/kubernetes/preinstall/tasks/0020-verify-settings.yml | 1 +
 roles/network_plugin/calico/tasks/check.yml                | 1 +
 roles/network_plugin/calico/tasks/install.yml              | 1 +
 3 files changed, 3 insertions(+)

diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
index a6e86e40b..6f0199b84 100644
--- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
+++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
@@ -136,6 +136,7 @@
   poll: 3
   run_once: yes
   delegate_to: "{{ groups['kube-master'][0] }}"
+  changed_when: false
   when:
     - kube_network_plugin == 'calico'
 
diff --git a/roles/network_plugin/calico/tasks/check.yml b/roles/network_plugin/calico/tasks/check.yml
index d35dda0fb..88fbe63a2 100644
--- a/roles/network_plugin/calico/tasks/check.yml
+++ b/roles/network_plugin/calico/tasks/check.yml
@@ -16,6 +16,7 @@
   delegate_to: "{{ groups['kube-master'][0] }}"
   async: 10
   poll: 3
+  changed_when: false
 
 - name: "Determine if calico upgrade is needed"
   block:
diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml
index e4eed81dc..8fe652801 100644
--- a/roles/network_plugin/calico/tasks/install.yml
+++ b/roles/network_plugin/calico/tasks/install.yml
@@ -81,6 +81,7 @@
   delay: "{{ retry_stagger | random + 3 }}"
   delegate_to: "{{ groups['kube-master'][0] }}"
   run_once: true
+  changed_when: false
 
 - name: Calico | Ensure that calico_pool_cidr is within kube_pods_subnet when defined
   assert:
-- 
GitLab