forked from evolix/ansible-roles
etc-git: invert conditions
If the "git init" command has not been executed, the variable is not defined.
This commit is contained in:
parent
9fc56586fe
commit
bac9649a97
|
@ -33,4 +33,4 @@
|
||||||
args:
|
args:
|
||||||
chdir: /etc
|
chdir: /etc
|
||||||
register: git_commit
|
register: git_commit
|
||||||
when: git_init.changed or git_log.rc != 0
|
when: git_log.rc != 0 or (git_init is defined and git_init.changed)
|
||||||
|
|
Loading…
Reference in a new issue