Execution
Date 28 Jan 2026 12:23:05 +0000
Duration 00:00:05.48
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.4 / 1.7.4
Python 3.10.10
Summary
1 Hosts
1 Tasks
1 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/zz-uninstall-wazuh-agent.yaml

---
- name: Uninstall agent
  hosts: all
  gather_facts: false
  tasks:
    - name: Uninstall
      ansible.builtin.shell: |
        set -o pipefail
        dnf -y remove wazuh-agent
        systemctl disable wazuh-agent
        systemctl daemon-reload
        rm -rf /var/ossec
      args:
        executable: /bin/bash
      changed_when: false