30 lines
784 B
YAML
30 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
|