Roofing or plastic capped nails, and wood strips. Staples will be a waste of time if you face anything more than a slight breeze.
If using just a tarp, if you can pull the tarp over the edge of the roof, roll the edge of the tarp a few times, and then nail from the soffit side through the rolled tarp, it will hold better than just nailing the tarp to the roof. A few wood strips nailed on top of the tarp will help hold it on.
_________________________
Our most important survival tool is our brain, and for many, that tool is way underused! SBRaider
Head Cat Herder