mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented role docker-mailu
This commit is contained in:
30
roles/docker-mailu/tasks/main.yml
Normal file
30
roles/docker-mailu/tasks/main.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
|
||||
- name: "Create mailu dir"
|
||||
file:
|
||||
path: "/mailu"
|
||||
state: directory
|
||||
mode: 0755
|
||||
become: yes
|
||||
|
||||
- name: "Add docker-compose.yml"
|
||||
copy:
|
||||
src: "docker-compose.yml"
|
||||
dest: "{{ inventory_dir }}/files/{{ inventory_hostname }}/mailu/docker-compose.yml"
|
||||
force: no
|
||||
become: yes
|
||||
|
||||
- name: "Add mailu.env"
|
||||
copy:
|
||||
src: "mailu.env"
|
||||
dest: "{{ inventory_dir }}/files/{{ inventory_hostname }}/mailu/mailu.env"
|
||||
force: no
|
||||
become: yes
|
||||
|
||||
- name: "Install mailu service"
|
||||
copy:
|
||||
src: "mailu.service"
|
||||
dest: "/etc/systemd/system/mailu.service"
|
||||
become: yes
|
||||
notify:
|
||||
- "Restart Mailu"
|
Reference in New Issue
Block a user