commit_etc_git: more resilient to Git errors
* Errors should be ignored * /etc might not be under verison control If Git is installed but there is not repository for /etc, the `git status` returns with a non-zero code.
This commit is contained in:
parent
5bbc9caa4f
commit
b095e4ffac
|
@ -8,6 +8,7 @@
|
||||||
# Use this with Ansible 2.1+
|
# Use this with Ansible 2.1+
|
||||||
#when: not ansible_check_mod
|
#when: not ansible_check_mod
|
||||||
always_run: yes
|
always_run: yes
|
||||||
|
ignore_errors: yes
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
register: etc_commit_end_evolinux
|
register: etc_commit_end_evolinux
|
||||||
# Use this with Ansible 2.1+
|
# Use this with Ansible 2.1+
|
||||||
#when: not ansible_check_mode and git_status.stdout != ""
|
#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:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
|
Loading…
Reference in a new issue