Catalysis of the reaction: acyl-CoA + reduced acceptor + O2 = desaturated-acyl-CoA + acceptor + 2 H2O.