legacy-server-config/mautrix-signal/start.yml

26 lines
577 B
YAML
Raw Permalink Normal View History

2021-01-17 16:37:14 +00:00
---
- hosts: teier.eu
gather_facts: no
tasks:
- name: Check mautrix-signal directory
stat:
path: /dc/mautrix-signal
2021-01-31 19:52:24 +00:00
register: mautrixsignal_dc_dir_stat
2021-01-17 16:37:14 +00:00
- name: Create mautrix-signal dc directory
file:
path: /dc/mautrix-signal
state: directory
mode: 0755
group: root
owner: root
2021-01-31 19:52:24 +00:00
when: mautrixsignal_dc_dir_stat.islnk is not defined
2021-01-17 16:37:14 +00:00
- name: Copy compose file
copy:
src: docker-compose.yml
dest: /dc/mautrix-signal
- name: Start mautrix-signal
shell: "cd /dc/mautrix-signal && docker-compose up -d"