21 lines
622 B
YAML
21 lines
622 B
YAML
- 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
|
|
|
|
- name: Create elasticsearch data source config
|
|
docker_config:
|
|
name: esdatasource
|
|
data: "{{ lookup('template', '{{ role_path }}/elasticsearch.yml.j2') }}"
|
|
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 }}"
|