nwl-ci/playbooks/getting_started/clone-repository.yml

17 lines
419 B
YAML

- name: Clone a Git Repository
hosts: linux
gather_facts: no
tasks:
- name: Clone a develop branch
register: clonerepo
git:
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}}"