CVS has agreed to buy Aetna for about $69 billion, in a deal that would reshape the American health care industry by bringing a big provider of pharmacy services and a large insurer under one roof. As part of the deal, CVS plans to use its nearly 10,000 pharmacy locations to provide consumers with more local care options. One of the biggest drivers of the deal is Amazon, which has laid the groundwork for an entry into the United States’ pharmacy business. As Amazon secures pharmacy licenses across the country, traditional drug sellers have weighed ways to fight back. Wary of Amazon’s much-rumored move into the pharmacy industry, the leaders of CVS and Aetna have met several times this year, conversations that eventually led to deal negotiations. CVS plans to repurpose portions of its pharmacies so they become community health centers where customers can go to get answers to more questions about their health and coverage, the companies plan to announce. The pharmacies will have space dedicated to wellness, and provide services for things like vision, hearing and nutrition.