playbooks/clone-repo: removed prompting but added std output

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmüller 2023-05-22 11:06:24 +02:00
parent bce9b6c45f
commit 8837554aba
1 changed files with 5 additions and 5 deletions

View File

@ -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}}"