Ansible (master with worker)
Wazuh Manager server ec2
sudo apt update -y
sudo apt install software-properties-common -y
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible -y
Create ssh-keygen with
ssh-keygen -t rsa -b 2048
Copy this key and we'll add to agent server later.
cat ~/.ssh/id_rsa.pub
Paste the given keys to authorized_keys of wazuh agent server.
nano ~/.ssh/authorized_keys
ansible all -i inventory/hosts -m ping
Last updated