Is it required to making a signal with a light signal in this situation?

Explanation
The goats block the driver's lane, so passing them requires a deliberate lateral deviation toward the centre of the road. That movement must be signalled in advance; the approaching vehicle makes checking the path especially important but does not make indication discretionary.