Primary health care (PHC) in Indonesia is essential in combating the spread of COVID-19 in the community. While each PHC deals with different situations at the beginning of COVID-19, the purpose of this study is to investigate the roles of PHC in preventing COVID-19 spread and promoting healthy behavior in the community. We applied a qualitative approach, collected data through focus group discussions, and then analyzed the data using thematic content analysis. PHC health officers from eight Indonesian regions, from western to eastern Indonesia, participated in this study. This study found that PHCs play crucial roles in preventing the spread of COVID-19 and promoting healthy behavior. They collaborated with the community to identify suspected COVID-19 cases, provided isolation facilities, and educated the public about COVID-19 prevention. The community contribution was somehow followed by the stigmatization of COVID-19 patients, complicating PHC efforts to prevent COVID-19 spread. Using the WHO building blocks, we identified lacking leadership, a healthy workforce, and access to essential medicine as other challenges for PHC to perform their tasks. PHC centers must employ strategies to provide a comprehensive understanding and combat the stigma associated with COVID-19 since the community plays pivotal roles and presents hurdles in preventing the spread of COVID-19.