Update README.md

Update instructions for running playbook in install mode and not.
This commit is contained in:
Sadiq Saif 2018-08-25 12:09:50 -04:00 committed by GitHub
parent a5e1061d45
commit e2bf5c78f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@ An Ansible playbook to install Mastodon
- Latest stable version of Ansible (this was tested with Ansible 2.4) - Latest stable version of Ansible (this was tested with Ansible 2.4)
- Server(s) running Ubuntu 16.04/18.04 LTS for hosting Mastodon - Server(s) running Ubuntu 16.04/18.04 LTS for hosting Mastodon
## Instructions for running this playbook ## Instructions for running this playbook (first time install)
- Copy group_vars/all.sample to group_vars/all and edit it to specify the - Copy group_vars/all.sample to group_vars/all and edit it to specify the
database name you wish to use with Mastodon. LOCAL_DOMAIN value is mandatory, it is your instance domain/sub-domain. **The PostgreSQL database role database name you wish to use with Mastodon. LOCAL_DOMAIN value is mandatory, it is your instance domain/sub-domain. **The PostgreSQL database role
@ -21,4 +21,10 @@ An Ansible playbook to install Mastodon
[mastodon] [mastodon]
dev.example.social dev.example.social
``` ```
- Run the playbook with `ansible-playbook -i hosts --extra-vars='install=true' site.yml`
## Instructions for using this playbook to update an existing instance
- Update version number in roles/mastodon-app/tasks/main.yml
- Run the playbook with `ansible-playbook -i hosts site.yml` - Run the playbook with `ansible-playbook -i hosts site.yml`
(**Note the lack of the install variable which is needed for installation related tasks**)