The defense ministers of France and Indonesia agreed Friday to work more closely to maintain regional stability, Indonesian officials said.