add radicale stack

This commit is contained in:
Pim Kunis 2023-05-02 16:47:27 +02:00
parent 1eedc0436d
commit 2b31d94f1d
7 changed files with 112 additions and 7 deletions

View file

@ -0,0 +1,25 @@
- name: Create working directory
file:
path: /srv/radicale
state: directory
- name: Copy config file
copy:
src: "{{ role_path }}/radicale.conf"
dest: /srv/radicale/radicale.conf
- name: Copy users file
copy:
src: "{{ role_path }}/users"
dest: /srv/radicale/users
- name: Copy Docker stack file
template:
src: "{{ role_path }}/docker-stack.yml.j2"
dest: /srv/radicale/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: radicale
compose:
- /srv/radicale/docker-stack.yml