Skip to content
Snippets Groups Projects
Commit d40d3bd6 authored by Chris Hines's avatar Chris Hines
Browse files

make the list of scripts installed as part of nagios monitoring explicy to avoid an error

parent ec7536b8
No related branches found
No related tags found
1 merge request!33Multiple fixes
...@@ -16,7 +16,20 @@ ...@@ -16,7 +16,20 @@
sudo: true sudo: true
- name: install monitor scripts - name: install monitor scripts
copy: dest={{ nagios_home }}/scripts/{{ item }} src=scripts/{{ item }} mode=755 copy: dest={{ nagios_home }}/scripts/{{ item }} src=files/scripts/{{ item }} mode=755
with_items: "{% set script_list = [] %}{% for s in nagios_services %}{%for g in hostvars[ansible_hostname].group_names %}{% if g in s.groups and s.script %}{% if script_list.append(s.script) %}{% endif %}{% endif %}{% endfor %}{% endfor %}{{ script_list }}" with_items:
- check_apache2
- check_blocked_vis_jobs
- check_ldap_client
- check_mysql
- check_slurmdbd
- check_blocked_beamline_jobs
- check_disk
- check_localfs.sh
- check_ntp
- check_blocked_compute_jobs
- check_ldap
- check_munge
- check_slurm
sudo: true sudo: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment