1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Ansible_Project/roles/ansistrano.deploy/tasks/update-code/hg.yml

19 lines
600 B
YAML
Raw Normal View History

2022-05-02 17:37:08 +02:00
---
- name: ANSISTRANO | HG | Update remote repository
hg:
repo: "{{ ansistrano_hg_repo }}"
dest: "{{ ansistrano_deploy_to }}/{{ ansistrano_repo_dir }}"
revision: "{{ ansistrano_hg_branch }}"
force: yes
register: ansistrano_hg_result
- name: ANSISTRANO | HG | Create release folder
file:
state: directory
path: "{{ ansistrano_release_path.stdout }}"
- name: ANSISTRANO | HG | Sync repo to release path
command: "hg archive -r {{ ansistrano_hg_branch }} {{ ansistrano_release_path.stdout }}"
args:
chdir: "{{ ansistrano_deploy_to }}/{{ ansistrano_repo_dir }}/"