2023-01-05 11:44:26 +01:00

24 lines
551 B
YAML

---
- name: Récupération de metricbeat
get_url:
url: http://s-adm.gsb.adm/gsbstore/metricbeat-7.16.3-amd64.deb
dest: /tmp/
- name: Installation de metricbeat
apt:
deb: /tmp/metricbeat-7.16.3-amd64.deb
- name: Changement du fichier de conf
copy:
src: metricbeat.yml
dest: /etc/metricbeat/metricbeat.yml
- name: Configuration de metricbeat
shell: metricbeat modules enable system
notify: start metricbeat
- name: Lancement de la configuration de metricbeat
shell: metricbeat setup -e
notify: start metricbeat