In the filebeat_oss.pp there is an exec "cleanup /etc/filebeat/wazuh-template.json" who try to delete a file, and when the file is missing it fails and stop the next action which is download the wazuh-template.
This situation happens at bootstrapping.