Here is an interesting post by Mark Silk on religion in the fictional town of Mayberry. He writes:
Mayberry had its preacher: Rev. Hobart M. Tucker of Mayberry’s All Souls Church (of undetermined denominational identity). Played by William Keene, Tucker appeared in six of the show’s 249 episodes–hardly a fair representation of the salience of religion in Western North Carolina but not too bad for religion-averse prime time sitcoms of the 1960s. His ministry was a mild send-up of the Peace of Mind spirituality of the postwar period. In one episode, Aunt Bea singles out his sermons on happiness for praise. In another, a guest preacher from New York all but puts the congregation to sleep with a sermon on the need to relax–perhaps not quite the right message for the sleepy little Southern town that time forgot. The road from Mayberry’s pulpit leads straight to the Simpsons’ Rev. Tim Lovejoy
And don’t forget the famous “Church in the Wildwood” scene from the third season. I cannot embed it, but you can see it here.
Silk is not particularly interested in Andy Griffith’s faith, but I am. Griffith was a lifelong Democrat who supported the Affordable Care Act and, according to one obituary, “was a person of incredibly strong Christian faith and was prepared for the day he would be called ‘Home to his Lord.'” He also had a successful career in gospel music.