- name: regenerate prometheus config command: /usr/local/sbin/prometheus-generate-config.sh - name: restart prometheus service: name: prometheus state: restarted