The "Configure Metricbeat" task in roles/beats/tasks/metricbeat.yml has no tags, unlike the Filebeat and Auditbeat configuration tasks which carry configuration, beats_configuration and their per-beat tag.
As a result, running the role with --tags configuration (or beats_configuration) re-writes the Filebeat and Auditbeat configuration but silently skips Metricbeat.
Fix: add the tags (configuration, beats_configuration, beats_metricbeat_configuration) to the Metricbeat configuration task for consistency with the other two Beats.
The "Configure Metricbeat" task in
roles/beats/tasks/metricbeat.ymlhas no tags, unlike the Filebeat and Auditbeat configuration tasks which carryconfiguration,beats_configurationand their per-beat tag.As a result, running the role with
--tags configuration(orbeats_configuration) re-writes the Filebeat and Auditbeat configuration but silently skips Metricbeat.Fix: add the tags (
configuration,beats_configuration,beats_metricbeat_configuration) to the Metricbeat configuration task for consistency with the other two Beats.