Does God condone slavery?

What do you think about slavery being mentioned in the Bible? Mainly the Old Testament. Examples include Ephesians 6:5-8, Colossians 3:22-24, 1 Timothy 6:1-2, Titus 2:9-10, Exodus 21. Etc. In all honesty this is the only thing in the Bible that genuinely stumps me. I don’t understand why God would condone slavery & include it in the book of LIFE.