Ian McLeod, MD of Australia's second-largest grocer Coles, is to take a role within the company's parent, retail-to-mining conglomerate Wesfarmers.