add monitoring stack
This commit is contained in:
parent
af2ee0a076
commit
3c4f505413
6 changed files with 138 additions and 0 deletions
13
ansible/roles/monitoring/tasks/main.yml
Normal file
13
ansible/roles/monitoring/tasks/main.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
- name: Create elasticsearch data source config
|
||||
docker_config:
|
||||
name: esdatasource
|
||||
data: "{{ lookup('template', '{{ role_path }}/elasticsearch.yml') }}"
|
||||
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 }}"
|
Reference in a new issue