openstack-ansible-ops/elk_metrics_6x/roles/elastic_metricbeat/handlers/main.yml
Bjoern Teipel 7c819e05dc Fixes related to installation on Trusty
As the role based macro links are pointing to unreachable destination
and are not required, they will be removed.
Additionally the timesouts are increased for API commands to ES, along
with minor changes around the upstart system manager

Change-Id: I2572bce230af2fd43261c9b0bf903bfd9655959e
2018-10-22 18:12:42 +00:00

34 lines
1.0 KiB
YAML

---
# Copyright 2018, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Enable and restart metricbeat (systemd)
systemd:
name: "metricbeat"
enabled: true
state: "{{ metricbeat_service_state }}"
daemon_reload: true
when:
- ansible_service_mgr == 'systemd'
listen: Enable and restart metricbeat
- name: Enable and restart metricbeat (upstart)
service:
name: "metricbeat"
state: "{{ metricbeat_service_state }}"
enabled: yes
when:
- ansible_service_mgr == 'upstart'
listen: Enable and restart metricbeat