This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/radicale/tasks/main.yml
2022-12-14 21:35:59 +01:00

29 lines
784 B
YAML

- name: Create Radicale app directory
file:
path: /apps/radicale
state: directory
- name: Copy docker-compose.yml file
copy:
src: "{{ role_path }}/files/docker-compose.yml"
dest: /apps/radicale/docker-compose.yml
- name: Create Radicale config directory
file:
path: /apps/radicale/config
state: directory
- name: Copy radicale.conf
copy:
src: "{{ role_path }}/files/radicale.conf"
dest: /apps/radicale/config/radicale.conf
- name: Copy users file
copy:
src: "{{ role_path }}/files/users"
dest: /apps/radicale/config/users
- name: Create Radicale data directory
file:
path: /data/radicale
state: directory
- name: Start Docker Compose
docker_compose:
project_src: /apps/radicale
pull: true
remove_orphans: true