It iterates throught the list and join all items. So the final list will become rhel,debian,gentoo,arch
vars.yml:
distributions:
- rhel
- debian
- gentoo
- arch
templates/page.j2:
...
{{ distributions|join(,) }} # rhel,debian,gentoo,arch
...