By some bags of sand, dig a deep two foot hole that'll drain well, fill the hole with sand, and stuff the yucca trunk into the sand bouta foot or more, stake for 6 months to a year, then remove all stakes.
Good drainage is an absolute must.
Cacti n succulents are all the rage out here now!
Jomo