Append line after match

\ (backslash followed by space) starts the appended line with all space characters that follows. Without \, no spaces will be kept in the line appended.

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