diff --git a/host_vars/dispatcher.example b/host_vars/dispatcher.example index e658838..77bf399 100644 --- a/host_vars/dispatcher.example +++ b/host_vars/dispatcher.example @@ -5,6 +5,7 @@ msmtp_smtp_server: "smtp.domain.tld" msmtp_smtp_from: "piframe@domain.tld" msmtp_smtp_user: "piframe@domain.tld" msmtp_smtp_password: "password" +monit_dashboard_address: 192.168.254.1 monit_containerized: true monit_notification_email: "{{ msmtp_email_address }}" monit_smtp_server: "{{ msmtp_smtp_server }}" diff --git a/roles/monit-dashboard/templates/servers.json b/roles/monit-dashboard/templates/servers.json index ddd7348..7d55586 100644 --- a/roles/monit-dashboard/templates/servers.json +++ b/roles/monit-dashboard/templates/servers.json @@ -1,6 +1,6 @@ { "dispatcher": { - "url": "http://127.0.0.1:2812", + "url": "http://{{ monit_dashboard_address }}:2812", "user": "{{ monit_web_user }}", "passwd": "{{ monit_web_pasword }}" }{{ "," if groups['frames'] is defined and (groups['frames']|length>0) else "" }}