Fix for Ansible < 2.1
This commit is contained in:
parent
f0aaf767ec
commit
5bbc9caa4f
|
@ -5,7 +5,9 @@
|
||||||
chdir: /etc
|
chdir: /etc
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: git_status
|
register: git_status
|
||||||
when: not ansible_check_mode
|
# Use this with Ansible 2.1+
|
||||||
|
#when: not ansible_check_mod
|
||||||
|
always_run: yes
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
|
||||||
|
@ -14,6 +16,8 @@
|
||||||
args:
|
args:
|
||||||
chdir: /etc
|
chdir: /etc
|
||||||
register: etc_commit_end_evolinux
|
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:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
|
Loading…
Reference in a new issue