ansible-roles/webapps/mastodon/README.md

74 lines
1.5 KiB
Markdown
Raw Normal View History

2023-01-06 16:48:56 +01:00
mastodon
2022-12-23 16:00:00 +01:00
=========
2023-01-06 16:48:56 +01:00
This role installs or upgrades the server for Mastodon, a free and decentralized microblogging social network.
FRENCH: Voir le fichier LISEZMOI.md pour le français.
2022-12-23 16:00:00 +01:00
Requirements
------------
...
Role Variables
--------------
2023-01-06 16:48:56 +01:00
Several of the default values in defaults/main.yml must be changed either directly in defaults/main.yml or better even by overwriting them somewhere else, for example in your playbook (see the example below).
2022-12-23 16:00:00 +01:00
Dependencies
------------
2023-01-06 16:48:56 +01:00
This Ansible role depends on the following other roles:
2022-12-23 16:00:00 +01:00
- nodejs
- postgresql
- redis
- elasticsearch
- rbenv
- nginx
- certbot
Example Playbook
----------------
```
2023-01-06 16:48:56 +01:00
- name: "Deploy a Mastodon server"
2022-12-23 16:00:00 +01:00
hosts:
- all
vars:
2023-01-06 16:48:56 +01:00
# Overwrite the role variable here
domains: ['your-real-domain.org']
service: 'my-mastodon'
2022-12-23 16:00:00 +01:00
db_host: 'localhost'
db_user: "{{ service }}"
db_name: "{{ service }}"
2023-01-06 16:48:56 +01:00
db_password: 'zKEh-CHANGE-ME-qIKc'
2022-12-23 16:00:00 +01:00
app_secret_key_base: ""
app_otp_secret: ""
app_vapid_private_key: ""
app_vapid_public_key: ""
2023-01-06 16:48:56 +01:00
app_smtp_from_address: "mastodon@your-real-domain.org"
2022-12-23 16:00:00 +01:00
pre_tasks:
2023-01-06 16:48:56 +01:00
- name: "Install system roles"
2022-12-23 16:00:00 +01:00
roles:
- { role: nodejs, nodejs_apt_version: 'node_16.x', nodejs_install_yarn: True }
- { role: postgresql }
- { role: redis }
- { role: elasticsearch }
- { role: nginx }
- { role: certbot }
roles:
- { role: webapps/mastodon , tags: "mastodon" }
```
License
-------
2023-01-06 16:48:56 +01:00
GPLv3
2022-12-23 16:00:00 +01:00
Author Information
------------------
2023-01-06 16:48:56 +01:00
Mathieu Gauthier-Pilote, sys. admin. at Evolix.