diff --git a/README.md b/README.md
index d75793c7fb618bf820f0ee8ac1d3e672b8b25a28..77bcc23e97ecbfddede7a2ef482bc02bf85dc91d 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ Requirements
 ------------
 
 This role requires Ansible collection community.docker
-Also, this role requires passlib (either python package or python3-passlib apt package) for proper encryption of passwords
+Also, this role requires passlib (either python package or python3-passlib apt package) for proper encryption of passwords and specific filter as per https://sources.le-filament.com/-/snippets/3.
 
 Role Variables
 --------------
diff --git a/templates/traefik.toml.j2 b/templates/traefik.toml.j2
index 2b725b0686b9ecce2a10d9b89c443770000351bb..23ba401ee7e2813bdf79b6565fd86d0b7c9c2b54 100644
--- a/templates/traefik.toml.j2
+++ b/templates/traefik.toml.j2
@@ -64,7 +64,7 @@
     [http.middlewares.limit.buffering]
       retryExpression = "IsNetworkError() && Attempts() < 5"
     [http.middlewares.auth.basicAuth]
-      users = ["{{ host_user }}:{{ srv_proxy_pass | password_hash('apr_md5_crypt', 65534 | random(seed=inventory_hostname) | string) }}"]
+      users = ["{{ host_user }}:{{ srv_proxy_pass | apr_md5_passwd(65534 | random(seed=inventory_hostname) | string) }}"]
     [http.middlewares.smtp-stripprefix.stripprefix]
       prefixes = ["/smtp"]
     [http.middlewares.norobot-headers.headers]