playbooks/clone-repo: removed prompting but added std output
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
bce9b6c45f
commit
8837554aba
|
|
@ -1,16 +1,16 @@
|
|||
- name: Clone a Git Repository
|
||||
hosts: linux
|
||||
gather_facts: no
|
||||
vars_prompt:
|
||||
- name: git_url
|
||||
prompt: Enter the git cloning URL, e.g. ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git
|
||||
private: no
|
||||
tasks:
|
||||
- name: Clone a develop branch
|
||||
register: clonerepo
|
||||
git:
|
||||
repo: "{{ git_url }}"
|
||||
repo: ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git
|
||||
dest: /home/user
|
||||
clone: yes
|
||||
update: yes
|
||||
single_branch: yes
|
||||
version: develop
|
||||
- name: Display cloning output
|
||||
debug:
|
||||
msg: "{{clonerepo.stdout_lines}}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue