Ansible script to stop an unninstall filebeat and metricbeat
0 parents
Showing
1 changed file
with
28 additions
and
0 deletions
unninstall-agents
0 → 100644
| 1 | --- | ||
| 2 | - name: Playbook para desinstalar Filebeat y Metricbeat | ||
| 3 | hosts: servidores | ||
| 4 | become: yes | ||
| 5 | tasks: | ||
| 6 | - name: Detener servicio Filebeat | ||
| 7 | ansible.builtin.systemd: | ||
| 8 | name: filebeat | ||
| 9 | state: stopped | ||
| 10 | ignore_errors: yes | ||
| 11 | |||
| 12 | - name: Detener servicio Metricbeat | ||
| 13 | ansible.builtin.systemd: | ||
| 14 | name: metricbeat | ||
| 15 | state: stopped | ||
| 16 | ignore_errors: yes | ||
| 17 | |||
| 18 | - name: Desinstalar Filebeat | ||
| 19 | ansible.builtin.package: | ||
| 20 | name: filebeat | ||
| 21 | state: absent | ||
| 22 | ignore_errors: yes | ||
| 23 | |||
| 24 | - name: Desinstalar Metricbeat | ||
| 25 | ansible.builtin.package: | ||
| 26 | name: metricbeat | ||
| 27 | state: absent | ||
| 28 | ignore_errors: yes | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment