39 lines
1.2 KiB
YAML
Raw Normal View History

2023-11-18 14:11:48 +01:00
---
- name: "include docker-central-database"
include_role:
name: docker-central-database
2025-02-03 11:44:13 +01:00
- name: Set nginx_docker_reverse_proxy_extra_configuration based on applications.listmonk.public_api_activated
set_fact:
nginx_docker_reverse_proxy_extra_configuration: >-
2025-02-03 11:44:13 +01:00
{% if not applications.listmonk.public_api_activated %}
{{ lookup('file', '{{ role_path }}/files/deactivate-public-api.conf') }}
{% else %}
""
{% endif %}
- name: "include role nginx-domain-setup for {{application_id}}"
2025-02-21 05:46:42 +01:00
include_role:
name: nginx-domain-setup
2025-02-21 05:46:42 +01:00
vars:
domain: "{{ domains[application_id] }}"
http_port: "{{ ports.localhost.http[application_id] }}"
2025-02-06 23:59:53 +01:00
- name: "copy docker-compose.yml and env file"
include_tasks: copy-docker-compose-and-env.yml
2023-12-05 13:46:06 +01:00
- name: add config.toml
template:
src: "config.toml.j2"
dest: "{{docker_compose.directories.config}}config.toml"
notify: docker compose project setup
- name: flush docker service
meta: flush_handlers
2025-02-19 03:46:25 +01:00
when: applications.listmonk.setup |bool
- name: setup routine for listmonk
command:
2024-01-06 11:33:33 +01:00
cmd: docker compose run -T --rm application sh -c "yes | ./listmonk --install"
chdir: "{{docker_compose.directories.instance}}"
2025-02-19 03:46:25 +01:00
when: applications.listmonk.setup |bool