etc-git: invert conditions

If the "git init" command has not been executed, the variable is not defined.
This commit is contained in:
Jérémy Lecour 2016-12-21 15:44:36 +01:00 committed by Jérémy Lecour
parent 9fc56586fe
commit bac9649a97

View file

@ -33,4 +33,4 @@
args:
chdir: /etc
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)