mirror of https://github.com/ceph/ceph-ansible.git
23 lines
437 B
YAML
23 lines
437 B
YAML
---
|
|
- name: ship systemd services
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/etc/systemd/system/{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
with_items:
|
|
- 'alertmanager.service'
|
|
- 'prometheus.service'
|
|
notify: service handler
|
|
|
|
- name: start prometheus services
|
|
systemd:
|
|
name: "{{ item }}"
|
|
daemon_reload: true
|
|
enabled: true
|
|
state: started
|
|
with_items:
|
|
- prometheus
|
|
- alertmanager
|