From 5f4cc3e1dea01807eb87368ae40b1905e8f80722 Mon Sep 17 00:00:00 2001
From: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
Date: Mon, 13 Feb 2017 15:00:56 +0100
Subject: [PATCH] Replace always_run with check_mode

always_run was deprecated in Ansible 2.2 and will be removed in 2.4
ansible logs contain "[DEPRECATION WARNING]: always_run is deprecated.
Use check_mode = no instead". This patch fix deprecation.
---
 roles/kubernetes/preinstall/tasks/gitinfos.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/kubernetes/preinstall/tasks/gitinfos.yml b/roles/kubernetes/preinstall/tasks/gitinfos.yml
index f5da4763e..323c0babf 100644
--- a/roles/kubernetes/preinstall/tasks/gitinfos.yml
+++ b/roles/kubernetes/preinstall/tasks/gitinfos.yml
@@ -10,7 +10,7 @@
 - name: 'GIT | generate git informations'
   local_action: command {{ role_path }}/gen-gitinfos.sh global
   register: gitinfo
-  always_run: yes
+  check_mode: no
 
 - name: 'GIT | copy ansible information'
   template:
@@ -21,7 +21,7 @@
 - name: 'GIT | generate diff file'
   local_action: command {{ role_path }}/gen-gitinfos.sh diff
   register: gitdiff
-  always_run: yes
+  check_mode: no
 
 - name: 'GIT | copy git diff file'
   copy:
-- 
GitLab