Defence department boss Greg Moriarty has been appointed Australia's next ambassador to the US, replacing former prime minister Kevin Rudd.