Skip to content
Snippets Groups Projects

Initial release

Merged Erick Hitter requested to merge add/initial-release into master
2 files
+ 18
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 33
1
---
# tasks file for gitlab-runner-do-monitor
\ No newline at end of file
- name: Download and install binary
get_url:
url: "{{ glrdomon_binary_url }}"
dest: "{{ glrdomon_binary_dest }}"
mode: 0755
force: yes
- name: Set configuration
template:
src: templates/config.j2
dest: "{{ glrdomon_config_dest }}"
force: yes
owner: root
group: root
mode: 0400
- name: Schedule cron job
cron:
name: gitlab-runner-do-monitor
minute: "{{ gldrmon_cron_interval_min }}"
job: "{{ glrdomon_binary_dest }} -config {{ glrdomon_config_dest }}"
state: present
cron_file: gitlab-runner-do-monitor
user: root
- name: Configure logrotate
template:
src: templates/logrotate.j2
dest: /etc/logrotate.d/gitlab-runner-do-monitor
force: yes
owner: root
group: root
mode: 0644
Loading