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/ansible/roles/radicale/tasks/main.yml

30 lines
820 B
YAML
Raw Permalink Normal View History

2022-12-14 20:35:59 +00:00
- name: Create Radicale app directory
file:
2023-01-07 19:32:42 +00:00
path: "{{ service_dir }}"
2022-12-14 20:35:59 +00:00
state: directory
- name: Copy docker-compose.yml file
2023-01-07 19:32:42 +00:00
template:
src: "{{ role_path }}/templates/docker-compose.yml.j2"
dest: "{{ service_dir }}/docker-compose.yml"
2022-12-14 20:35:59 +00:00
- name: Create Radicale config directory
file:
2023-01-07 19:32:42 +00:00
path: "{{ service_dir }}/config"
2022-12-14 20:35:59 +00:00
state: directory
- name: Copy radicale.conf
copy:
src: "{{ role_path }}/files/radicale.conf"
2023-04-13 09:43:42 +00:00
dest: "{{ service_dir }}/config/config"
2022-12-14 20:35:59 +00:00
- name: Copy users file
copy:
src: "{{ role_path }}/files/users"
2023-01-07 19:32:42 +00:00
dest: "{{ service_dir }}/config/users"
2022-12-14 20:35:59 +00:00
- name: Create Radicale data directory
file:
2023-01-07 19:32:42 +00:00
path: "{{ data_dir }}"
2022-12-14 20:35:59 +00:00
state: directory
- name: Start Docker Compose
docker_compose:
2023-01-07 19:32:42 +00:00
project_src: "{{ service_dir }}"
2022-12-14 20:35:59 +00:00
pull: true
remove_orphans: true