25 lines
543 B
YAML
25 lines
543 B
YAML
- 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
|