Installing Ansible

Install Ansible on a single control server. From this server, Ansible connects to remote endpoints and runs playbooks to deploy or configure Wazuh components.

Perform the following to install Ansible:

Installation on CentOS/RHEL/Fedora

  1. Install the EPEL repository:

    # yum -y install epel-release
    
  2. Install Ansible:

    # yum install ansible
    

Installation on Debian/Ubuntu

  1. Update the repositories and install required dependencies:

    # apt-get update
    
  2. Setup Ansible repository:

    # apt-get install lsb-release software-properties-common
    # apt-add-repository -y ppa:ansible/ansible
    # apt-get update
    
  3. Install Ansible:

    # apt-get install ansible