{% for item in ftp_groups.results %} Match Group {{ item.name }} ForceCommand internal-sftp -d /%u ChrootDirectory /srv/{{ item.name}} AllowAgentForwarding no AllowTcpForwarding no X11Forwarding no {% endfor %}