Only monitor MC from one node

This commit is contained in:
Alex 2020-06-07 16:22:15 +02:00
parent dcd661a35a
commit c8ba440042
No account linked to committer's email address
1 changed files with 7 additions and 0 deletions

View File

@ -77,3 +77,10 @@
stats = ["*"]
#[[inputs.fail2ban]]
{% if inventory_hostname == "n3" %}
[[inputs.minecraft]]
server = "{{ hostvars['n3']['ansible_ens10']['ipv4']['address'] }}"
port = "25575"
password = "{{ vault_minecraft.rcon.password }}"
{% endif %}