changed backup procedure

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-24 22:50:00 +01:00
parent b064aab289
commit d010ea55ad

View File

@ -9,12 +9,23 @@
removes: "{{ docker_compose_file_path }}"
become: true
- name: register directory
stat:
path: "{{docker_compose_instance_directory}}"
register: docker_compose_instance_directory_register
- name: checkout repository
ansible.builtin.shell: git checkout .
become: true
args:
chdir: "{{docker_compose_instance_directory}}"
when: docker_compose_instance_directory_register.stat.exists
- name: pull docker repository
git:
repo: "https://github.com/opf/openproject-deploy"
dest: "{{ repository_directory }}"
update: yes
force: yes
notify: recreate openproject
become: true
register: git_result