The governing body of any city or town, or county, or any school district, may dedicate and set apart for use as playgrounds, recreation centers, and other recreational purposes, any lands or buildings, or both, owned or leased by such municipality and not dedicated or devoted to another and inconsistent public use, and such municipality may, in such manner as may now or hereafter be authorized or provided by law for the acquisition of lands or buildings for public purposes, acquire or lease lands or buildings, or both, for such recreational purposes, or if there is no law authorizing such acquisition or leasing of such lands or buildings, the governing body of any such municipality is hereby empowered to acquire lands or buildings, or both, for such purposes by gift, purchase, condemnation or lease.