--- - name: Converge hosts: all roles: - role: ../../roles/wazuh/ansible-wazuh-manager vars: - { role: ../../roles/wazuh/ansible-filebeat-oss, filebeat_output_indexer_hosts: "indexer_centos7:9200" } vars: pre_tasks: - name: (converge) fix missing packages in cloud images apt: name: - unzip - gpg-agent state: present update_cache: yes when: ansible_distribution == "Ubuntu"