--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: no tasks: - name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service" import_role: name: config-nagios-nrpe when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled