main.yml 381 B

1234567891011121314151617
  1. ---
  2. - name: Install Prometheus
  3. ansible.builtin.import_role:
  4. name: cloudalchemy.prometheus
  5. - name: Ensure Prometheus Service is running
  6. service:
  7. name: prometheus
  8. state: restarted
  9. enabled: yes
  10. - name: Ensure a job that reboot every 6 hours exists.
  11. ansible.builtin.cron:
  12. name: "reboot every 6 hours"
  13. minute: "0"
  14. hour: "*/6"
  15. job: "/sbin/reboot"