Ansley was a Merchant Taylor. He was appointed an alderman in the City of London's Bread Street ward in 1800 at the age of 26, and subsequently elected one of the Sheriffs of the City of London in 1805, before being elected Lord Mayor in 1807. Ansley served as vice-president of the Royal Literary Fund for many years, and was a patron of the Merchant Taylors' School.
- The Gentleman's Magazine. W. Pickering. 1845. pp. 546–.
- The Gentleman's Magazine. 1804. Retrieved 23 October 2015.
- The New Annual Register, Or General Repository of History, Politics, Arts, Sciences, and Literature, for the Year ... G. Robinson. 1808. pp. 1–.
- The History of the Merchant Taylors School. Retrieved 23 October 2015.
| Lord Mayor of London