58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
---
|
|
- name: Récupération de filebeat
|
|
get_url:
|
|
url: "http://s-adm.gsb.adm/gsbstore/filebeat-{{ BEATVER }}-amd64.deb"
|
|
dest: /tmp/
|
|
|
|
- name: Installation de filebeat
|
|
apt:
|
|
deb: "/tmp/filebeat-{{ BEATVER }}-amd64.deb"
|
|
|
|
<<<<<<< HEAD
|
|
- name: Chgt filebeat.yml - localhost:9200 - Elastic
|
|
replace:
|
|
path: /etc/filebeat/filebeat.yml
|
|
regexp: 'localhost:9200'
|
|
replace: 's-elk.gsb.adm:9200'
|
|
backup: yes
|
|
|
|
- name: Chgt filebeat.yml - localhost:5601 - Kibana
|
|
replace:
|
|
path: /etc/filebeat/filebeat.yml
|
|
regexp: 'localhost:5601'
|
|
replace: 's-elk.gsb.adm:5601'
|
|
backup: yes
|
|
|
|
|
|
- name: Chgt filebeat.yml - user - Kibana
|
|
replace:
|
|
path: /etc/filebeat/filebeat.yml
|
|
regexp: 'user:5601'
|
|
replace: 's-elk.gsb.adm:5601'
|
|
backup: yes
|
|
|
|
#- name: Changement du fichier de conf
|
|
# copy:
|
|
# src: filebeat.yml
|
|
# dest: /etc/filebeat/filebeat.yml
|
|
=======
|
|
- name: sorie pou debug
|
|
fail:
|
|
msg: "packet installe"
|
|
|
|
|
|
- name: Changement du fichier de conf
|
|
copy:
|
|
src: filebeat.yml
|
|
dest: /etc/filebeat/filebeat.yml
|
|
>>>>>>> d16ccae (maj pour elk-filebeat-cli)
|
|
|
|
- name: Configuration de filebeat
|
|
shell: filebeat modules enable system
|
|
notify: restart filebeat
|
|
|
|
- name: Lancement de la configuration de filebeat
|
|
shell: filebeat setup -e
|
|
notify: restart filebeat
|
|
|