Fix error when repo_build_git_cache is undefined

Change-Id: I79ea58497b2f3d8faab3f9f8325cd87a2f9d9967
This commit is contained in:
Paulo Matias 2016-08-23 09:07:32 -03:00 committed by Jesse Pretorius (odyssey4me)
parent 180d998226
commit 6f028ff161

View File

@ -54,6 +54,7 @@
register: _local_repo_bind_mount
when:
- inventory_hostname == groups['repo_all'][0]
- _local_git_cache.stat is defined
- _local_git_cache.stat.exists
- name: Check if the repo container bind mount is empty
@ -84,6 +85,7 @@
dest: "{{ repo_build_git_bind_mount }}"
state: link
when:
- _local_git_cache.stat is defined
- _local_git_cache.stat.exists
- _local_repo_bind_mount.stat is defined
- _local_repo_bind_mount.stat.exists
@ -93,6 +95,7 @@
src: "{{ repo_build_git_cache }}"
dest: "{{ repo_build_git_dir }}"
when:
- _local_git_cache.stat is defined
- _local_git_cache.stat.exists
- _local_repo_bind_mount.stat is defined
- not _local_repo_bind_mount.stat.exists