Being fixed in place doesn't guarantee it's defensive in nature, missile silos for example. But a mine I'd consider defensive. Fixed antiaircraft positions are defensive. Most military equipment can be used on the offense of course, and defensive gear can enable the offensive thrust.
The Maginot Line was defensive, and it actually "worked" tactically. It's fascinating to visit.