"It's a great opportunity for me," Ainsworth told Rangers' official website.
"I'm over the moon about it. I had a taste of it last year and this is another step forward in terms of my long-term aspirations.
"I've still got plenty to offer as a player, but I'm delighted that I've been given the chance to learn from Iain and Tim, who I have huge respect for."