20 lines
591 B
YAML
20 lines
591 B
YAML
- hosts: all
|
|
pre_tasks:
|
|
- name: Determine if repo directory exists already
|
|
stat:
|
|
path: "src/stx-nova"
|
|
register: stx_nova_exists
|
|
|
|
- debug:
|
|
msg: "Cloning {{ stx_nova_repo }} branch {{ stx_nova_branch }}"
|
|
when: stx_nova_exists.stat.isdir is undefined
|
|
|
|
- name: Clone stx-nova repo
|
|
git:
|
|
# repo: https://github.com/starlingx-staging/stx-nova.git
|
|
# version: stx/stein.1
|
|
repo: "{{ stx_nova_repo }}"
|
|
version: "{{ stx_nova_branch }}"
|
|
dest: "src/stx-nova"
|
|
when: stx_nova_exists.stat.isdir is undefined
|