I believe the above answer is correct. Provided the cameras aren’t pointing at a place where people have a reasonable expectation of privacy (i.e. showers, inside their homes, etc.), your HOA can legally install security cams in common areas.
My condo recently put up video cameras at the playground and I think it’s a great idea especially since children are around. Parents want to know their kids are safe and if anything goes wrong the cameras have it recorded.