Tame one, lvl up health, stam, speed and damage as high as possible then go destroy rock golems and gather rare resources. Best dino for it. Tamed 3 and destroyed a golem in 3 whacks of their tails. Happy Hunting.
Throw it in a 2x2 stone pin with 1 (2 for safe keeping) doorframes all around as walls and use a Argi to pick it up and put it in and use whatever tranq to knock it... If u have no Argi just launch tranqs at it and run away it is not fast so it won't catch up
The Ankylosaurus will not attack you in the wild unless you attack first. When battling you can run away quite easily, just be aware, they have high health, so if you plan to kill one make sure you have enough stamina and resources to kill them.