Ok, i see template way is the right one for me. Ansible looks huge for our small team. However, I will have a note. Thanks a lot Anton always helpful and rest of the members here too.
комрадз, подскажите, плиз, есть такой конфиг: stream { server { listen 8429; location /targets { proxy_pass vmagent; } } upstream vmagent { server 192.168.3.51:8429; server 192.168.3.52:8429; } } хочется что бы все что приходит на 8429/targets уходило на 2 хоста что в upstream, но nginx ругается что location directive is not allowed here in /etc/nginx/nginx.conf.