From 78f6f6b8893aa908c08aba084cb2a9c872cd156d Mon Sep 17 00:00:00 2001
From: andreyshestakov <ashestakov@mirantis.com>
Date: Tue, 16 Apr 2019 19:31:11 +0300
Subject: [PATCH] Mark "Calico | Set global as_num" as "unchanged" (#4539)

This command executes with "--skip-exists" parameter, so it is idempotent
and should not be marked as "changed".
---
 roles/network_plugin/calico/tasks/install.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml
index 992710944..ad19e5eaf 100644
--- a/roles/network_plugin/calico/tasks/install.yml
+++ b/roles/network_plugin/calico/tasks/install.yml
@@ -148,6 +148,7 @@
         "asNumber": {{ global_as_num }} }} ' | {{ bin_dir }}/calicoctl.sh create --skip-exists -f -
   run_once: true
   delegate_to: "{{ groups['kube-master'][0] }}"
+  changed_when: false
   when:
     - calico_version is version('v3.0.0', '>=')
 
-- 
GitLab