Britain wants to keep its troops in Iraq but will pull out if Baghdad so demands, defense minister Ben Wallace said on Tuesday.