Append line after match

\ (backslash followed by spaces) starts the appended line with all space characters that follows the \. Without it, sed removes all spaces from the line appended.

sed -i '/files-2.1/a \                      caches/modules-2/files-2.1/idea' *.yml