{% 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 %}