Pim Kunis
111bf68a0a
move docker swarm ansible to this repo move thecloud ansible to this repo support data disks in terraform
21 lines
575 B
YAML
21 lines
575 B
YAML
- name: Create radicale config
|
|
docker_config:
|
|
name: radicale_config
|
|
data: "{{ lookup('file', '{{ role_path }}/radicale.conf') }}"
|
|
use_ssh_client: true
|
|
rolling_versions: true
|
|
register: config
|
|
|
|
- name: Create radicale users
|
|
docker_config:
|
|
name: radicale_users
|
|
data: "{{ lookup('file', '{{ role_path }}/users') }}"
|
|
use_ssh_client: true
|
|
rolling_versions: true
|
|
register: users
|
|
|
|
- name: Deploy Docker stack
|
|
docker_stack:
|
|
name: radicale
|
|
compose:
|
|
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
|