Stack goat cheese in a clean, wide-mouthed jar, layering with peppercorns, red pepper flakes, and rosemary. Pour oil over cheese to cover, screw lid on tightly, and chill. When ready to serve, bring to room temperature. Serve on toasted baguettes or crackers. Store in an airtight container for up to 1 month in refrigerator.