Add support to clone a refspec
Expose the ability for a user to pass a refspec to our git task. Change-Id: I6554bfbcfbd3b7d72f3dbd89d3cc8aa3ee5725bd Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
c7d82ea426
commit
4aeac7efea
|
@ -69,7 +69,8 @@ nodepool_file_launcher_logging_conf_src: etc/nodepool/launcher-logging.conf
|
|||
# tasks/install.yaml
|
||||
nodepool_git_dest: /opt/ansible-role-nodepool/git/openstack-infra/nodepool
|
||||
nodepool_git_uri: https://git.openstack.org/openstack-infra/nodepool
|
||||
nodepool_git_version: master
|
||||
# nodepool_git_refspec:
|
||||
# nodepool_git_version:
|
||||
|
||||
nodepool_install_method: git
|
||||
|
||||
|
|
|
@ -16,8 +16,9 @@
|
|||
become: yes
|
||||
git:
|
||||
dest: "{{ nodepool_git_dest }}"
|
||||
refspec: "{{ nodepool_git_refspec|default(omit) }}"
|
||||
repo: "{{ nodepool_git_uri }}"
|
||||
version: "{{ nodepool_git_version }}"
|
||||
version: "{{ nodepool_git_version|default(omit) }}"
|
||||
|
||||
- name: Set nodepool_pip_name to local git repo.
|
||||
set_fact:
|
||||
|
|
Loading…
Reference in New Issue