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
|
- name: Clone a Git Repository
|
||||||
hosts: linux
|
hosts: linux
|
||||||
gather_facts: no
|
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:
|
tasks:
|
||||||
- name: Clone a develop branch
|
- name: Clone a develop branch
|
||||||
|
register: clonerepo
|
||||||
git:
|
git:
|
||||||
repo: "{{ git_url }}"
|
repo: ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git
|
||||||
dest: /home/user
|
dest: /home/user
|
||||||
clone: yes
|
clone: yes
|
||||||
update: yes
|
update: yes
|
||||||
single_branch: yes
|
single_branch: yes
|
||||||
version: develop
|
version: develop
|
||||||
|
- name: Display cloning output
|
||||||
|
debug:
|
||||||
|
msg: "{{clonerepo.stdout_lines}}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue