How can I repel or trap lizards?
The simplest solution is a small live animal trap. Havahart is the most common brand and is widely available in hardware stores with an agricultural bent.

If it's a salamander rather than an actual lizard you may need to cover the trap so it's dark and inviting enough. That's an educated guess; I'm not an herpetologist.