--- - name: Install matrix-synapse apt: name: matrix-synapse update_cache: yes default_release: stretch-backports - name: Configure matrix-synapse template: src: matrix-synapse/conf.d/{{ item }}.j2 dist: /etc/matrix-synapse/conf.d/{{ item }} loop: - database.yaml.j2 - listeners.yaml.j2 - no_tls.yaml.j2 - server_name.yaml.j2 notify: Restart matrix-synapse service