try to make this logic so much shorter
This commit is contained in:
parent
eebab27357
commit
e688a716a6
1 changed files with 1 additions and 7 deletions
|
@ -1,10 +1,4 @@
|
|||
{% if ansible_distribution_major_version == "7" and ansible_distribution is "RedHat" %}
|
||||
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'fedmsg-gateway' -u fedmsg
|
||||
{% elif ansible_distribution_major_version|int < 30 and ansible_distribution is "Fedora" %}
|
||||
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'fedmsg-gateway' -u fedmsg
|
||||
{% elif ansible_distribution_major_version == "8" and ansible_distribution is "RedHat" %}
|
||||
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'fedmsg-gateway-3' -u fedmsg
|
||||
{% elif ansible_distribution_major_version|int >= 30 and ansible_distribution is "Fedora" %}
|
||||
{% if (( ansible_distribution_major_version == "8" ) and ( ansible_distribution is "RedHat" )) or ((ansible_distribution_major_version|int >= 30) and (ansible_distribution is "Fedora")) %}
|
||||
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'fedmsg-gateway-3' -u fedmsg
|
||||
{% else %}
|
||||
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'fedmsg-gateway' -u fedmsg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue