]> Untitled Git - lemmy.git/blob - docs/src/administration_install_ansible.md
bf5e674931adcd21e71d4feb88f4b78c008bff1b
[lemmy.git] / docs / src / administration_install_ansible.md
1 # Ansible Installation
2
3 This is the same as the [Docker installation](administration_install_docker.md), except that Ansible handles all of it automatically. It also does some extra things like setting up TLS and email for your Lemmy instance.
4
5 First, you need to [install Ansible on your local computer](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) (e.g. using `sudo apt install ansible`) or the equivalent for you platform.
6
7 Then run the following commands on your local computer:
8
9 ```bash
10 git clone https://github.com/dessalines/lemmy.git
11 cd lemmy/ansible/
12 cp inventory.example inventory
13 nano inventory # enter your server, domain, contact email
14 ansible-playbook lemmy.yml --become
15 ```
16
17 To update to a new version, just run the following in your local Lemmy repo:
18 ```bash
19 git pull origin master
20 cd ansible
21 ansible-playbook lemmy.yml --become
22 ```