ab800827 by awx

Ansible script to stop an unninstall filebeat and metricbeat

0 parents
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
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!