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