--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: yes tasks: - name: "[CONFIG SUDOERS] Comprobando si es necesario configurar sudoers" debug: msg: "No es necesario configurar sudoers en la máquina" when: sudoers_enabled is not defined or not sudoers_enabled - name: "[CONFIG SUDOERS] Config sudoers" import_role: name: config-sudoers