[1][2] He was promoted to major in 1926 and to lieutenant colonel in 1927, serving for the next ten years in the General Staff Corps; on 1 January 1937 he was promoted to colonel and given command of the 30th Artillery Regiment, part of the 7th Infantry Division Lupi di Toscana, with which he was sent to Albania in April 1939 when Italy invaded that country.
On 18 September, Andreoli was captured by German troops in Cuneo, being then sent to Oflag 64/Z in Schokken, Poland, where he remained until early 1945.
In mid-January, with the Red Army reaching the Vistula, the Nazi command decided to evacuate the camp and transfer its internees to Luckenwalde, south of Berlin, with a forced march.
Along with sixteen other prisoners (the weakest of the column, who were too exhausted to continue the march and made a stop with the permission of the German commander, who however refused to write a statement that they had been left behind with his consent rather than escaped), Andreoli stopped on the way, in Kuźnica Żelichowska, looking for food in a tavern; the group was however noticed by a non-commissioned officer of the Luftwaffe and reported to the SS.
The latter rounded up the prisoners and forced them to resume the march, shooting those who were unable to keep pace with the main group; Andreoli, who walked too slowly, was among those thus murdered, along with generals Carlo Spatocco, Emanuele Balbo Bertone, Alberto Trionfi, Alessandro Vaccaneo and Ugo Ferrero.