diff --git a/tasks/commit_etc_git.yml b/tasks/commit_etc_git.yml index 61a1c59..71df8e6 100644 --- a/tasks/commit_etc_git.yml +++ b/tasks/commit_etc_git.yml @@ -8,6 +8,7 @@ # Use this with Ansible 2.1+ #when: not ansible_check_mod always_run: yes + ignore_errors: yes tags: - git @@ -18,6 +19,7 @@ register: etc_commit_end_evolinux # Use this with Ansible 2.1+ #when: not ansible_check_mode and git_status.stdout != "" - when: git_status.stdout != "" + when: git_status.rc == 0 and git_status.stdout != "" + ignore_errors: yes tags: - git