Bayesian Reasoning and Machine Learning (by David Barber, Cambridge University Press) has an online version which is freely available, but without any mention to a specific license. However, the Instructors Material page seems to imply that the exercises in the book can be used as teaching material, if that is what you are looking for.