This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/radicale/tasks/main.yml

22 lines
575 B
YAML
Raw Permalink Normal View History

2023-05-20 11:45:25 +00:00
- name: Create radicale config
docker_config:
name: radicale_config
2023-05-20 12:01:36 +00:00
data: "{{ lookup('file', '{{ role_path }}/radicale.conf') }}"
2023-05-20 11:45:25 +00:00
use_ssh_client: true
rolling_versions: true
register: config
2023-05-02 14:47:27 +00:00
2023-05-20 11:45:25 +00:00
- name: Create radicale users
docker_config:
name: radicale_users
2023-05-20 12:01:36 +00:00
data: "{{ lookup('file', '{{ role_path }}/users') }}"
2023-05-20 11:45:25 +00:00
use_ssh_client: true
rolling_versions: true
register: users
2023-05-02 14:47:27 +00:00
- name: Deploy Docker stack
docker_stack:
name: radicale
compose:
2023-05-20 11:45:25 +00:00
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"