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