-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeploy.yml
38 lines (33 loc) · 1.09 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- hosts: all
remote_user: root
vars:
compose_directory: /data/pandorabox.io
tasks:
- name: Checkout git master
ansible.builtin.git:
repo: https://github.com/pandorabox-io/pandorabox.io
dest: "{{ compose_directory }}"
single_branch: yes
force: yes
version: master
- name: Template minetest config
template:
src: "minetest.conf"
dest: "{{compose_directory}}/data/minetest/minetest.conf"
- name: Template matterbridge config
template:
src: "config/matterbridge.toml"
dest: "{{compose_directory}}/config/matterbridge.toml"
- name: Template test matterbridge config
template:
src: "config/matterbridge.test.toml"
dest: "{{compose_directory}}/config/matterbridge.test.toml"
- name: Create and start services
shell:
cmd: "docker-compose up -d --build --remove-orphans"
chdir: "{{ compose_directory }}"
- name: Reload nginx config
shell:
cmd: "docker-compose exec -T nginx nginx -s reload"
chdir: "{{ compose_directory }}"