The former first minister is to serve as deputy prime minister in a simulation of a Russian attack on the UK.