legacy-server-config/mail/start.yml

26 lines
490 B
YAML
Raw Permalink Normal View History

2021-04-02 11:09:32 +00:00
---
- hosts: teier.eu
gather_facts: no
tasks:
- name: Check dc directory
stat:
path: /dc/mail
register: mail_dc_dir_stat
- name: Create mail dc directory
file:
path: /dc/mail
state: directory
mode: 0755
group: root
owner: root
when: mail_dc_dir_stat.islnk is not defined
- name: Copy compose file
copy:
src: docker-compose.yml
dest: /dc/mail/
- name: Start mail
shell: "cd /dc/mail && docker-compose up -d"