Ignition? problem

Batteries test good, but sometimes, when I turn the key, it just clicks? It always eventually starts, but 2-5,+ tries is required!?