diff --git a/roles/container-engine/containerd/templates/config.toml.j2 b/roles/container-engine/containerd/templates/config.toml.j2
index d1bb4abfb3f3d86ec6752fed91bf131f13dde4a8..e1d4ab2df419b4ebbeac646bbf3c9a7590329f2e 100644
--- a/roles/container-engine/containerd/templates/config.toml.j2
+++ b/roles/container-engine/containerd/templates/config.toml.j2
@@ -86,7 +86,7 @@ oom_score = {{ containerd_oom_score }}
 {% endif %}
 {% endfor %}
 
-{% if nri_enabled and containerd_version >= 1.7.0 %}
+{% if nri_enabled and containerd_version is version('1.7.0', '>=') %}
   [plugins."io.containerd.nri.v1.nri"]
     disable = false
 {% endif %}