--- - name: Restart synapse hosts: synapse tasks: - name: Restart the synapse server ansible.builtin.shell: cmd: env/bin/synctl restart chdir: $HOME/synapse