Deploy Twitcher =============== .. contents:: :local: :depth: 2 .. note:: You can safely try the installation using Vagrant_ or Docker. See :ref:`testing`. Prepare ------- You need a recent Ansible_ version (`>=2.7`) on your local client: .. code-block:: console $ ansible --version ansible 2.7.2 If you don't have Ansible installed, then follow these instructions: :ref:`requirements`. Get the Playbook ---------------- Clone this playbook from GitHub: .. code-block:: console $ git clone https://github.com/bird-house/ansible-twitcher-playbook.git $ cd ansible-twitcher-playbook Customize Configuration ----------------------- Configure your Twitcher installation. See :ref:`Configuration`: .. code-block:: console $ cp etc/sample-twitcher-standalone.yml custom.yml $ vim custom.yml Running your playbook locally ----------------------------- .. warning:: If your system has already a Supervisor_ or a PostgreSQL_ installation, please remove them manually. .. warning:: Make sure your Ansible directory is not world-readable, otherwise the `ansible.cfg` file will not be read. See `Ansible Documentation `_. If not already done (see :ref:`requirements`), fetch required roles/recipes from `ansible-galaxy`: .. code-block:: console $ ansible-galaxy -p roles -r requirements.yml install Run your playbook locally: .. code-block:: console $ ansible-playbook -c local playbook.yml .. note:: You can also use the shortcut to run both:: $ make play For remote deployment follow the instructions in the next section :ref:`live`.