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/svn.yml

32 lines
1.1 KiB
YAML
Raw Normal View History

2022-05-02 17:37:08 +02:00
---
- name: ANSISTRANO | SVN | Update remote repository
subversion:
repo: "{{ ansistrano_svn_repo }}/{{ ansistrano_svn_branch }}"
dest: "{{ ansistrano_deploy_to }}/{{ ansistrano_repo_dir }}"
revision: "{{ ansistrano_svn_revision }}"
username: "{{ ansistrano_svn_username }}"
password: "{{ ansistrano_svn_password }}"
force: yes
environment: "{{ ansistrano_svn_environment }}"
register: ansistrano_svn_result_update
- name: ANSISTRANO | SVN | Register ansistrano_svn_result variable
set_fact: ansistrano_svn_result={{ ansistrano_svn_result_update }}
- name: ANSISTRANO | SVN | Create release folder
file:
state: directory
path: "{{ ansistrano_release_path.stdout }}"
- name: ANSISTRANO | SVN | Copy repo to release path
subversion:
repo: "{{ ansistrano_deploy_to }}/{{ ansistrano_repo_dir }}"
dest: "{{ ansistrano_release_path.stdout }}"
revision: "{{ ansistrano_svn_revision }}"
username: "{{ ansistrano_svn_username }}"
password: "{{ ansistrano_svn_password }}"
export: yes
force: yes
environment: "{{ ansistrano_svn_environment }}"
register: ansistrano_svn_result_export