From 9584a24968c4d19cd089419038b6f4981a7593e0 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 11 Jan 2017 18:18:58 +0100 Subject: [PATCH] etc-git-commit: check_mode compatible --- tasks/commit_etc_git.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/commit_etc_git.yml b/tasks/commit_etc_git.yml index ee59109..2ccd620 100644 --- a/tasks/commit_etc_git.yml +++ b/tasks/commit_etc_git.yml @@ -5,6 +5,7 @@ chdir: /etc changed_when: False register: git_status + when: not ansible_check_mode tags: - git @@ -13,6 +14,6 @@ args: chdir: /etc register: etc_commit_end_evolinux - when: git_status.stdout != "" + when: not ansible_check_mode and git_status.stdout != "" tags: - git