--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: no tasks: # Paso 1: Instalar paquetes necesarios para Nagios NRPE - name: "[CONFIG NAGIOS NRPE] Instalar paquetes nagios-nrpe-server y nagios-nrpe-plugin" apt: name: "{{ item }}" state: present update_cache: yes loop: - nagios-nrpe-server - nagios-nrpe-plugin