They scare it off using a big willy, the ghost hasn't got a big red willy. As far as I know.

Villagers ward off evil spirits with massive penis | The Morningstarr*