From 5bbc9caa4f748c6b890b98a117b32b42e037c5ec Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 2 Feb 2017 15:39:25 +0100 Subject: [PATCH] Fix for Ansible < 2.1 --- tasks/commit_etc_git.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks/commit_etc_git.yml b/tasks/commit_etc_git.yml index 2ccd620..61a1c59 100644 --- a/tasks/commit_etc_git.yml +++ b/tasks/commit_etc_git.yml @@ -5,7 +5,9 @@ chdir: /etc changed_when: False register: git_status - when: not ansible_check_mode + # Use this with Ansible 2.1+ + #when: not ansible_check_mod + always_run: yes tags: - git @@ -14,6 +16,8 @@ args: chdir: /etc register: etc_commit_end_evolinux - when: not ansible_check_mode and git_status.stdout != "" + # Use this with Ansible 2.1+ + #when: not ansible_check_mode and git_status.stdout != "" + when: git_status.stdout != "" tags: - git