22 lines
576 B
YAML
22 lines
576 B
YAML
---
|
|
# Clone or update the Changemaker Lite repository
|
|
|
|
- name: Ensure deploy directory exists
|
|
ansible.builtin.file:
|
|
path: "{{ cml_deploy_path }}"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: Clone repository
|
|
ansible.builtin.git:
|
|
repo: "{{ cml_repo_url }}"
|
|
dest: "{{ cml_deploy_path }}"
|
|
version: "{{ cml_repo_branch }}"
|
|
force: false
|
|
update: true
|
|
register: git_result
|
|
|
|
- name: Show git status
|
|
ansible.builtin.debug:
|
|
msg: "Repository {{ 'updated' if git_result.changed else 'unchanged' }} at {{ git_result.after[:8] | default('unknown') }}"
|