Elasticsearch index file needs to be re-index in old version

You tried to install mapper-attachments which is a attachment plugin pre elasticsearch 5.6 (According to your console output, you installed 5.6.16). This should have thrown an error - anway.
Do the following to solve this:

sudo /usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-attachment #safety IF any was installed
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
systemctl restart elasticsearch
zammad run rake searchindex:rebuild