playbooks: added playbook to clone a repository
the repository url shall be prompted to keep it more flexible. Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
ae29034593
commit
850396ebc3
|
|
@ -0,0 +1,13 @@
|
|||
- name: Clone a Git Repository
|
||||
hosts: linux
|
||||
gather_facts: no
|
||||
- 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
|
||||
ansible.builtin.git:
|
||||
repo: "{{ git_url }}"
|
||||
dest: /home/user
|
||||
single_branch: yes
|
||||
version: develop
|
||||
Loading…
Reference in New Issue