I agree, a Yucca! There are types with sharp tipped points (very, very sharp!) and a spineless variety. I have the Spineless Yucca (Yucca gigantea) growing in my yard which looks very much like the one in your photo.
~ I'm an old gal who still loves playing in the dirt!
~ Playing in the dirt is my therapy ... and I'm in therapy a lot!