mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 13:41:03 +01:00
Solved bugs
This commit is contained in:
parent
9fec9efcb1
commit
309e237f5c
@ -2,18 +2,6 @@
|
||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
|
||||
- name: register repository_directory_register
|
||||
stat:
|
||||
path: "{{repository_directory}}"
|
||||
register: repository_directory_register
|
||||
|
||||
- name: checkout repository
|
||||
ansible.builtin.shell: git checkout .
|
||||
become: true
|
||||
args:
|
||||
chdir: "{{repository_directory}}"
|
||||
when: repository_directory_register.stat.exists
|
||||
|
||||
- name: "backup docker-compose.yml if it exists"
|
||||
command: >
|
||||
mv "{{ docker_compose_file_path }}" "{{ docker_compose_backup_path }}"
|
||||
@ -26,6 +14,7 @@
|
||||
repo: "https://github.com/opf/openproject-deploy"
|
||||
dest: "{{ repository_directory }}"
|
||||
update: yes
|
||||
force: yes
|
||||
notify: recreate openproject
|
||||
become: true
|
||||
register: git_result
|
||||
|
@ -28,6 +28,7 @@ x-op-app: &app
|
||||
IMAP_ENABLED: "${IMAP_ENABLED:-false}"
|
||||
volumes:
|
||||
- "${OPDATA}:/var/openproject/assets"
|
||||
- "${PGDATA}:/var/openproject/pgdata"
|
||||
|
||||
services:
|
||||
db:
|
||||
@ -60,6 +61,9 @@ services:
|
||||
- web
|
||||
networks:
|
||||
- frontend
|
||||
volumes:
|
||||
- "${OPDATA}:/var/openproject/assets"
|
||||
- "${PGDATA}:/var/openproject/pgdata"
|
||||
|
||||
web:
|
||||
<<: *app
|
||||
|
Loading…
Reference in New Issue
Block a user