Clone a new monitoring-scripts repo to hosts with NRPE installed

This commit is contained in:
Salt 2021-08-18 18:16:43 -05:00
parent 2421fab739
commit 051fee73d3

View File

@ -3,6 +3,12 @@
--- ---
- hosts: tags_nagios-nrpe - hosts: tags_nagios-nrpe
roles: roles:
- role: git
vars:
git_repos:
- repo: https://git.desu.ltd/salt/monitoring-scripts
dest: /usr/local/bin/monitoring-scripts
tags: [ nrpe ]
- role: nrpe - role: nrpe
vars: vars:
nrpe_server_bind_address: 0.0.0.0 nrpe_server_bind_address: 0.0.0.0
@ -36,4 +42,4 @@
with_items: with_items:
- nagios-nrpe-server.service - nagios-nrpe-server.service
when: "'tags_nagios-nrpe' not in group_names and item in services" when: "'tags_nagios-nrpe' not in group_names and item in services"
tags: [ zerotier ] tags: [ nrpe, zerotier ]