Brazil’s Zika virus outbreak won’t compromise the Olympics the country will be hosting in August, President Dilma Rousseff vowed on Saturday as soldiers went door-to-door to share key tips on how to stem the virus.

"The situation does not compromise the Olympics," Rousseff said. "We are confident that until the Olympics begin we will have considerable success in exterminating" the Aedes aegypti mosquito that transmits the virus.

Rio de Janeiro will host the Summer Olympics August 5 to 21, drawing athletes and spectators from around the world.

Rousseff spoke to reporters after visiting two houses in a suburb of Rio de Janeiro as part of a national awareness campaign to stop the virus from spreading.

Early today, some 220,000 soldiers fanned out across the vast South American country, knocking on doors to pass out brochures.

While it causes only mild symptoms in most people, Zika has been linked to a rapid rise in the number of children born with microcephaly — abnormally small heads and brains — to mothers infected during pregnancy.

Warning that pregnant women were especially at risk, Rousseff urged all Brazilians to come together.

"The war depends on us," said Rousseff, accompanied by officials, health workers and a swarm of journalists.

"The government is taking the lead but that alone won’t win the war," she added. "We need to get everyone involved." 

Brazil has been most affected by the outbreak, with 1.5 million people infected since early 2015.

Troops will visit three million homes to make people aware that many mosquito breeding areas are found in homes.

For example, mosquito larvae can live in standing water in flower pots.

There is currently no cure or vaccine for Zika.