There are no restrictions on who can buy a home in Ireland, however, you will not be allowed to live in the home you purchased if you do not have an Irish residency.
If you are seeking a visa in Ireland in return for investing in Ireland there are options and I would suggest checking out https://www.irelandinvestorvisa.com/