diff --git a/ansible/roles/vm-agents-processexporter/templates/config.j2 b/ansible/roles/vm-agents-processexporter/templates/config.j2 index 548454989c7ddf92f0fbfed0fdf5421336e0c7e0..755266c3633a5a4bb4c5ad9b9cc16c62602b45c2 100644 --- a/ansible/roles/vm-agents-processexporter/templates/config.j2 +++ b/ansible/roles/vm-agents-processexporter/templates/config.j2 @@ -118,8 +118,8 @@ process_names: cmdline: - .+middleManager.+ {% endif %} -{% if 'redis-ps' in group_names and hostvars[inventory_hostname]['ansible_default_ipv4']['address'] in groups['redis-ps'] and redis_process_names is defined %} -{% for item in redis_process_names %} +{% if 'redis-ps' in group_names and hostvars[inventory_hostname]['ansible_default_ipv4']['address'] in groups['redis-ps'] and redis_process_ports is defined %} +{% for item in redis_process_ports %} - name: "{{ item }}" comm: - redis-server