I have a task like this:
- include: tasks/install_nginx_vhost.yml
vars:
domain_name: learn.{{ domain_name }}
- include: tasks/install_nginx_vhost.yml
vars:
domain_name: author.{{ domain_name }}
But I am getting this error:
recursive loop detected in template string
Is it possible to temporarily (only for the include) override a variable like this? Because I don't want to create additional variables.