We use Ansible 2.2 so check_mode is available
This commit is contained in:
parent
2bd516ab05
commit
5aca0109df
|
@ -5,9 +5,7 @@
|
||||||
chdir: /etc
|
chdir: /etc
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: git_status
|
register: git_status
|
||||||
# Use this with Ansible 2.1+
|
when: not ansible_check_mod
|
||||||
#when: not ansible_check_mod
|
|
||||||
always_run: yes
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
@ -17,9 +15,7 @@
|
||||||
args:
|
args:
|
||||||
chdir: /etc
|
chdir: /etc
|
||||||
register: etc_commit_end_evolinux
|
register: etc_commit_end_evolinux
|
||||||
# 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.rc == 0 and git_status.stdout != ""
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
|
|
|
@ -4,3 +4,4 @@
|
||||||
register: evocheck_run
|
register: evocheck_run
|
||||||
changed_when: False
|
changed_when: False
|
||||||
failed_when: evocheck_run.stdout != ""
|
failed_when: evocheck_run.stdout != ""
|
||||||
|
check_mode: no
|
||||||
|
|
Loading…
Reference in a new issue