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/monitoring/tasks/main.yml

22 lines
622 B
YAML
Raw Normal View History

2023-08-02 16:07:24 +00:00
- name: Create fluentd config
docker_config:
name: fluentconf
data: "{{ lookup('template', '{{ role_path }}/fluent.conf.j2') }}"
use_ssh_client: true
rolling_versions: true
register: fluentconf
2023-08-01 14:24:00 +00:00
- name: Create elasticsearch data source config
docker_config:
name: esdatasource
2023-08-02 16:07:24 +00:00
data: "{{ lookup('template', '{{ role_path }}/elasticsearch.yml.j2') }}"
2023-08-01 14:24:00 +00:00
use_ssh_client: true
rolling_versions: true
register: esdatasource
- name: Deploy Docker stack
docker_stack:
name: monitoring
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"