Read his bio by Ian Kershaw. After WWI, some German solider sort of did a communist up rising in Bavaria, if I remember correctly. Hitler was like the 2nd in the command or something... and a commie. The up rising didn't last, but already his gift of the gab was evident.
Kershaw speculates that Hitler just wanted to stay in the army, a place where the hobo he was sort of belonged, a family of sorts. The end of the War ment his days there were numbered. He probably would have embrassed any ideology or religion to stay there, to have a purpose.