From eeffa60c3f9384bac449d92409e197b222460c81 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Thu, 15 Dec 2016 16:37:13 +1100
Subject: [PATCH] add check_mode tags to shell command and script tasks that
 should be run even when checking (only do this if the task is known to not
 make system changes

---
 roles/upgrade/tasks/main.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/roles/upgrade/tasks/main.yml b/roles/upgrade/tasks/main.yml
index 6f459c63..661224e0 100644
--- a/roles/upgrade/tasks/main.yml
+++ b/roles/upgrade/tasks/main.yml
@@ -27,10 +27,12 @@
   shell: rpm -q kernel-devel | cut -f 3,4 -d "-"
   register: rpm_q_output
   when: ansible_os_family=="RedHat"
+  check_mode: no
 
 - name: get kernel version
   shell: uname -r
   register: uname_r_output
+  check_mode: no
 
 - name: default dont reboot
   set_fact: 
-- 
GitLab