diff --git a/playbooks/getting_started/clone-repository.yml b/playbooks/getting_started/clone-repository.yml new file mode 100644 index 0000000..52bc1d2 --- /dev/null +++ b/playbooks/getting_started/clone-repository.yml @@ -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