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