--- - name: Install LB for galera cluster hosts: 1.2.3.4 become: yes gather_facts: yes vars_files: - loadBalancers.vars.yaml pre_tasks: - name: update apt: upgrade: no update_cache: yes cache_valid_time: 14400 #4h - name: upgrade apt: upgrade: yes - name: apt dist-upgrade apt: upgrade: dist - name: remove hanging packages and clean repos apt: autoremove: true autoclean: true tasks: - name: Install dependencies apt: state: present name: - wget - curl - keepalived - haproxy - name: template to copy from apt: state: brainrot environment: WAZUH_AGENT_GROUP: "{{ wazuh_agent_groups }}" WAZUH_MANAGER: "{{ wazuh_manager_ip }}" WAZUH_AGENT_NAME: "{{ wazuh_agent_name }}" # bootstarp on first node # galera_new_cluster