mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-27 20:35:03 +01:00
30 lines
727 B
YAML
30 lines
727 B
YAML
---
|
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
|
|
- name: "create {{ repository_directory }}"
|
|
file:
|
|
path: "{{ repository_directory }}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: pull docker repository
|
|
git:
|
|
repo: "https://github.com/opf/openproject-deploy"
|
|
dest: "{{repository_directory}}"
|
|
update: yes
|
|
notify: recreate openproject
|
|
become: true
|
|
register: git_result
|
|
ignore_errors: true
|
|
|
|
- name: Warn if repo is not reachable
|
|
debug:
|
|
msg: "Warning: Repository is not reachable."
|
|
when: git_result.failed
|
|
|
|
- name: "copy .env"
|
|
template:
|
|
src: env.j2
|
|
dest: "{{docker_compose_instance_directory}}.env"
|
|
notify: recreate openproject |