diff --git a/galaxy.yml b/galaxy.yml index c40fe12..a102d26 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: clip name: hpc # The version of the collection. Must be compatible with semantic versioning -version: 1.2.0 +version: 1.3.0 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/roles/goss/defaults/main.yml b/roles/goss/defaults/main.yml index 8bfac53..6284a35 100644 --- a/roles/goss/defaults/main.yml +++ b/roles/goss/defaults/main.yml @@ -6,6 +6,6 @@ goss_test_file: "dummy.yml" goss_template_vars: "" goss_template_vars_file: "goss_vars.yml" goss_node_exporter_textfile_dir: "/tmp" - +goss_cron_schedule: "*/1 * * * *" # defaults file for role-goss diff --git a/roles/goss/tasks/main.yml b/roles/goss/tasks/main.yml index 3b8dd39..a04db10 100644 --- a/roles/goss/tasks/main.yml +++ b/roles/goss/tasks/main.yml @@ -31,6 +31,9 @@ state: installed - name: deploy /etc/cron.d/prometheus_goss file + tags: + - always + - goss_reconfigure template: src: "templates/prometheus_goss.cron.j2" dest: "/etc/cron.d/prometheus_goss" diff --git a/roles/goss/templates/prometheus_goss.cron.j2 b/roles/goss/templates/prometheus_goss.cron.j2 index 0e0b1a0..36e18cc 100644 --- a/roles/goss/templates/prometheus_goss.cron.j2 +++ b/roles/goss/templates/prometheus_goss.cron.j2 @@ -1 +1 @@ -*/1 * * * * root {{ goss_install_dir }}/prometheus_goss.sh +{{ goss_cron_schedule }} root {{ goss_install_dir }}/prometheus_goss.sh