diff --git a/tasks/configure.yml b/tasks/configure.yml index 8120152..cb85dbd 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -75,7 +75,7 @@ capability: CAP_NET_BIND_SERVICE+ep state: present when: - - grafana_port <= 1024 + - grafana_port | int <= 1024 - grafana_cap_net_bind_service - name: Enable and start Grafana systemd unit diff --git a/tasks/preflight.yml b/tasks/preflight.yml index 19cd15d..6224312 100644 --- a/tasks/preflight.yml +++ b/tasks/preflight.yml @@ -74,7 +74,7 @@ fail: msg: Trying to use a port lower than 1024 without setting grafana_cap_net_bind_service. when: - - grafana_port <= 1024 + - grafana_port | int <= 1024 - not grafana_cap_net_bind_service - name: Fail if grafana_server.socket not defined when in socket mode