# Ansible Playbook to install Nextcloud and Prosody and JavaScript Chat XMPP on Debian

**URL:** <https://help.nextcloud.com/t/ansible-playbook-to-install-nextcloud-and-prosody-and-javascript-chat-xmpp-on-debian/34113>\
**Category:** ℹ️ Support\
**Tags:** ojsxc-app\
**Created:** [July 17, 2018, 6:53pm UTC](https://help.nextcloud.com/t/ansible-playbook-to-install-nextcloud-and-prosody-and-javascript-chat-xmpp-on-debian/34113 "2018-07-17T18:53:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/chrisc/32/6396_2.png) [@chrisc](https://help.nextcloud.com/u/chrisc)\
**Post date:** [July 17, 2018, 6:53pm UTC](https://help.nextcloud.com/t/ansible-playbook-to-install-nextcloud-and-prosody-and-javascript-chat-xmpp-on-debian/34113/1 "2018-07-17T18:53:57Z")

</div>

After a couple of somewhat frustrating weeks I have managed to sort out a working Ansible role to install and configure Prosody and JavaScript Chat on Nextcloud servers:

> **[webarch / nextcloud](https://git.coop/webarch/nextcloud)**
>
> Ansible playbook to install Nextcloud

This also creates a private chat server available only to people with accounts on the Nextcloud server and a public chat server open to anyone with a XMPP (Jabber) account.

I’ve had some great help from the developers of Prosody via their [chat room](https://prosody.im/discuss) and also from the developers via issues for [the xmpp-cloud-auth project at GitHub](https://github.com/jsxc/xmpp-cloud-auth).

This probably isn’t directly useful to people who don’t have a Nextcloud provisioned by my co-op but might help someone if they are also working on automating the install and configuration of Prosody and Nextcloud, most of the interesting stuff is in this file:

> **[roles/prosody/tasks/main.yml · master · webarch / nextcloud](https://git.coop/webarch/nextcloud/blob/master/roles/prosody/tasks/main.yml)**
>
> Ansible playbook to install Nextcloud

And if anyone would like this setup, together with Nextcloud talk (a coturn server) and Collabora running in a Docker container on a Debian server then we are available at reasonable rates:

> **[Support](https://www.webarchitects.coop/support)**
>
> Sysadmin, devops, operations, troubleshooting, support and advice services from Webarchitects.

And can also provide managed Nextcloud servers:

> **[Nextcloud Hosting : Private Virtual Servers](https://www.webarchitects.coop/nextcloud)**
>
> Nextcloud is a leading free, open source, web based office application, offering document sharing, contacts, calendar and much more. Webarchitects is a UK based co-operative which provides Nextcloud hosting on managed virtual servers.

---

<div class="post-metadata">

**Author:** ![sualko](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sualko/32/299_2.png) [@sualko](https://help.nextcloud.com/u/sualko)\
**Post date:** [July 18, 2018, 7:52am UTC](https://help.nextcloud.com/t/ansible-playbook-to-install-nextcloud-and-prosody-and-javascript-chat-xmpp-on-debian/34113/2 "2018-07-18T07:52:37Z")

</div>

Thanks for sharing 👍

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 7:24am UTC](https://help.nextcloud.com/t/ansible-playbook-to-install-nextcloud-and-prosody-and-javascript-chat-xmpp-on-debian/34113/3 "2024-12-04T07:24:06Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 3:01pm UTC](https://help.nextcloud.com/t/ansible-playbook-to-install-nextcloud-and-prosody-and-javascript-chat-xmpp-on-debian/34113/4 "2024-12-09T15:01:38Z")

</div>


