diff --git a/templates/config.cfg b/templates/config.cfg
index e2632d24650b1719003f9f872ce87ed75de4c002..e697d88242387b970e6694ccc4534a6390650b45 100644
--- a/templates/config.cfg
+++ b/templates/config.cfg
@@ -6,7 +6,7 @@
 sd_url: {{sd_url}}
 agent_key: {{sd_agent_key}}
 
-plugin_directory: /usr/bin/sd-agent/plugins
+plugin_directory: {{ sd_agent_plugins_dir }}
 logging_level: {{sd_logging_level}}
 
 {% if sd_groups.apache != 'none' and inventory_hostname in groups[sd_groups.apache] %}