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
|
||||
changed_when: False
|
||||
register: git_status
|
||||
# Use this with Ansible 2.1+
|
||||
#when: not ansible_check_mod
|
||||
always_run: yes
|
||||
when: not ansible_check_mod
|
||||
ignore_errors: yes
|
||||
tags:
|
||||
- git
|
||||
|
@ -17,9 +15,7 @@
|
|||
args:
|
||||
chdir: /etc
|
||||
register: etc_commit_end_evolinux
|
||||
# Use this with Ansible 2.1+
|
||||
#when: not ansible_check_mode and git_status.stdout != ""
|
||||
when: git_status.rc == 0 and git_status.stdout != ""
|
||||
when: not ansible_check_mode and git_status.stdout != ""
|
||||
ignore_errors: yes
|
||||
tags:
|
||||
- git
|
||||
|
|
|
@ -4,3 +4,4 @@
|
|||
register: evocheck_run
|
||||
changed_when: False
|
||||
failed_when: evocheck_run.stdout != ""
|
||||
check_mode: no
|
||||
|
|
Loading…
Reference in New Issue