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

30 lines
778 B
YAML
Raw Normal View History

2022-12-14 20:35:59 +00:00
- name: Create Radicale app directory
file:
2023-01-07 18:08:49 +00:00
path: /srv/radicale
2022-12-14 20:35:59 +00:00
state: directory
- name: Copy docker-compose.yml file
copy:
src: "{{ role_path }}/files/docker-compose.yml"
2023-01-07 18:08:49 +00:00
dest: /srv/radicale/docker-compose.yml
2022-12-14 20:35:59 +00:00
- name: Create Radicale config directory
file:
2023-01-07 18:08:49 +00:00
path: /srv/radicale/config
2022-12-14 20:35:59 +00:00
state: directory
- name: Copy radicale.conf
copy:
src: "{{ role_path }}/files/radicale.conf"
2023-01-07 18:08:49 +00:00
dest: /srv/radicale/config/radicale.conf
2022-12-14 20:35:59 +00:00
- name: Copy users file
copy:
src: "{{ role_path }}/files/users"
2023-01-07 18:08:49 +00:00
dest: /srv/radicale/config/users
2022-12-14 20:35:59 +00:00
- name: Create Radicale data directory
file:
path: /data/radicale
state: directory
- name: Start Docker Compose
docker_compose:
2023-01-07 18:08:49 +00:00
project_src: /srv/radicale
2022-12-14 20:35:59 +00:00
pull: true
remove_orphans: true