1234567891011121314151617 |
- ---
- - name: Install Prometheus
- ansible.builtin.import_role:
- name: cloudalchemy.prometheus
- - name: Ensure Prometheus Service is running
- service:
- name: prometheus
- state: restarted
- enabled: yes
- - name: Ensure a job that reboot every 6 hours exists.
- ansible.builtin.cron:
- name: "reboot every 6 hours"
- minute: "0"
- hour: "*/6"
- job: "/sbin/reboot"
|