This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/radicale/tasks/main.yml

26 lines
543 B
YAML
Raw Normal View History

2023-05-02 14:47:27 +00:00
- 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