2024-05-01 19:29:19 +03:00
|
|
|
---
|
|
|
|
- name: Clone project
|
|
|
|
hosts: host.ublue.local
|
|
|
|
gather_facts: true
|
2024-05-03 17:21:06 +03:00
|
|
|
pre_tasks:
|
|
|
|
- name: DEBUG - forge variables
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: debug_forge_vars
|
2024-05-01 19:29:19 +03:00
|
|
|
tasks:
|
|
|
|
- name: Clone project
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: "{{ forge_git_repository_url }}"
|
|
|
|
dest: "{{ forge_git_repository_destination }}"
|
|
|
|
version: "{{ forge_git_repository_version }}"
|
2024-05-03 17:21:06 +03:00
|
|
|
register: __git_clone_info
|
|
|
|
|
|
|
|
- name: INFO | Status from git clone
|
|
|
|
ansible.builtin.debug:
|
|
|
|
msg: "{{ __git_clone_info }}"
|