etc-git-commit: check_mode compatible
This commit is contained in:
parent
8a18cbfbb1
commit
9584a24968
|
@ -5,6 +5,7 @@
|
||||||
chdir: /etc
|
chdir: /etc
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: git_status
|
register: git_status
|
||||||
|
when: not ansible_check_mode
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
|
||||||
|
@ -13,6 +14,6 @@
|
||||||
args:
|
args:
|
||||||
chdir: /etc
|
chdir: /etc
|
||||||
register: etc_commit_end_evolinux
|
register: etc_commit_end_evolinux
|
||||||
when: git_status.stdout != ""
|
when: not ansible_check_mode and git_status.stdout != ""
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
|
Loading…
Reference in a new issue