Ensure git clones discard local modifications

If a cloned repo contains local modifications, the clone task will
fail. This ensures any local modifications are discarded, ensuring a
successful clone.

Change-Id: Ic5799fe07e15739cc11acabba803e3be47606f94
Closes-Bug: #1506590
This commit is contained in:
Byron McCollum 2015-10-15 13:27:29 -05:00
parent 8fdc6d50ca
commit afb72b70b8
4 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@
clone: "yes"
update: "yes"
version: "{{ nova_novncproxy_git_install_branch }}"
force: yes
register: git_clone
until: git_clone|success
retries: 5

View File

@ -45,6 +45,7 @@
clone: "yes"
update: "yes"
version: "{{ nova_spicehtml5_git_install_branch }}"
force: yes
register: git_clone
until: git_clone|success
retries: 5

View File

@ -33,6 +33,7 @@
repo: "{{ tempest_git_repo }}"
dest: "{{ tempest_git_dest }}"
version: "{{ tempest_git_install_branch }}"
force: yes
register: git_clone
until: git_clone|success
retries: 5

View File

@ -18,6 +18,7 @@
repo: "{{ git_repo }}"
dest: "{{ git_dest }}"
version: "{{ git_install_branch }}"
force: yes
register: git_clone
until: git_clone|success
retries: 5