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