- name: Deploy Suricata on Debian family
hosts: suricata_debian
become: true
tasks:
- name: Install Suricata
ansible.builtin.apt:
update_cache: true
name: suricata
state: present
- name: Enable and start Suricata
ansible.builtin.systemd:
name: suricata
enabled: true
state: started
- name: Deploy Suricata on RHEL family
hosts: suricata_rhel
become: true
tasks:
- name: Install Suricata
ansible.builtin.dnf:
name: suricata
state: present