ansible-role-mastodon/defaults/main.yml

155 lines
4.3 KiB
YAML
Raw Normal View History

2022-11-19 10:10:57 +01:00
---
2022-11-19 21:55:50 +01:00
mastodon_initial_setup: false
mastodon_owner: MyUser
mastodon_owner_email: myemail@example.org
2022-11-19 10:10:57 +01:00
redis_pass: "{{ vault_mastodon_redis_password }}"
2022-11-19 11:23:23 +01:00
mastodon_secret_key_base: "{{ vault_mastodon_secret_key_base }}"
mastodon_otp_secret: "{{ vault_mastodon_otp_secret }}"
2022-11-19 19:06:51 +01:00
mastodon_paperclip_secret: "{{ vault_mastodon_paperclip_secret }}"
vapid_public_key: "{{ vault_mastodon_vapid_public_key }}"
vapid_private_key: "{{ vault_mastodon_vapid_private_key }}"
2022-11-19 11:23:23 +01:00
smtp_from_address: mastodon-admin@example.com
smtp_server: mail.example.com
2022-11-19 10:10:57 +01:00
mastodon_host: mastodon.example.com
2022-11-22 13:23:26 +01:00
mastodon_web_domain: example.com
mastodon_alternate_domains: ''
mastodon_authorized_fetch: 'false'
mastodon_limited_federation: 'false'
2022-11-19 10:28:06 +01:00
#Use HTTP only for Vagrant testing or for reverse proxy purposes.
2022-11-19 10:10:57 +01:00
use_http: true
2022-11-19 10:28:06 +01:00
ansible_python_interpreter: "/usr/bin/python2"
mastodon_docker_image: "moritzheiber/mastodon-docker"
mastodon_docker_network: "mastodon_network"
2022-11-19 16:31:16 +01:00
docker_command: docker
2022-11-20 19:55:08 +01:00
docker_daemon_settings:
iptables: false
log-driver: journald
2022-11-19 10:28:06 +01:00
install_python_packages:
- package: "docker"
uninstall_python_packages:
- package: "docker-py"
install_packages:
2022-11-19 17:48:40 +01:00
- package: "docker-ce"
2022-11-19 10:31:19 +01:00
- package: "python-pip-whl"
2022-11-19 10:28:06 +01:00
- package: "python-setuptools"
2022-11-19 12:38:14 +01:00
- package: docker-compose
2022-11-19 12:03:09 +01:00
2022-11-19 10:28:06 +01:00
2022-11-19 17:36:25 +01:00
uninstall_packages:
2022-11-19 16:31:16 +01:00
# - package: "docker-engine"
# - package: "docker"
2022-11-19 17:48:40 +01:00
- package: "docker.io"
# - package: "docker-ce"
2022-11-19 16:31:16 +01:00
# - package: "docker-ce-cli"
# - package: "dockerio"
2022-11-19 10:28:06 +01:00
run_preflight_checks: "true"
node_major_version: "16"
os_family: "{{ ansible_os_family|lower }}"
#Please list a valid name of the tag from Mastodon's Github.
#Accepted format is "vX.X.XrcX"
mastodon_version: "latest"
mastodon_allow_prerelease: "false"
mastodon_user: "mastodon"
mastodon_home: "/home/{{ mastodon_user }}"
mastodon_db_user: "{{ mastodon_user }}"
2022-11-19 17:17:16 +01:00
mastodon_db_password: "{{ vault_mastodon_db_password }}"
2022-11-19 10:28:06 +01:00
mastodon_path: "live"
mastodon_db: "{{ mastodon_user }}_instance"
mastodon_db_port: 5432
mastodon_nginx_symlink: "/var/www/html/mastodon"
disable_hsts: "false"
disable_letsencrypt: "false"
#Nginx will listen to every IP/Domain with this directive. Useful for reverse proxy or testing only.
nginx_catch_all: "false"
2022-11-19 19:45:37 +01:00
redis_host: 127.0.0.1
2022-11-19 10:28:06 +01:00
redis_port: 6379
self_signed_cert_location: /etc/ssl/certs
self_signed_key_location: /etc/ssl/private
2022-11-19 21:55:50 +01:00
mastodon_composer_folder: /opt/mastodon
2022-11-20 19:55:08 +01:00
media_remove_schedule: 'Sat *-*-* 00:10:00'
preview_cards_remove_schedule: 'Sat *-*-* 00:20:00'
search_deploy_schedule: 'Sat *-*-* 03:00:00'
2022-11-19 10:28:06 +01:00
2022-11-19 17:17:16 +01:00
es_enabled: 'false'
es_host: localhost
es_port: 9200
es_user: elastic
2022-11-19 22:00:24 +01:00
es_pass: "{{ vault_mastodon_es_pass }}"
es_version: 7.17.7
2022-11-19 17:17:16 +01:00
s3_enabled: 'false'
s3_bucket: ''
aws_access_key_id: ''
aws_secret_access_key: ''
s3_alias_host: ''
limited_federation_mode: 'false'
disabllow_unauthenticated_api_access: 'false'
single_user_mode: 'true'
web_concurrency: 2
max_threads: 5
default_locale: en
2022-11-19 17:17:16 +01:00
2022-11-19 10:28:06 +01:00
ubuntu_codename: "{{ ansible_distribution_release }}"
2022-11-19 22:13:23 +01:00
mastodon_db_login_unix_socket: postgresql # "/var/run/postgresql"
2022-11-19 10:28:06 +01:00
packages:
- package: "autoconf"
- package: "bison"
- package: "build-essential"
- package: "curl"
- package: "cron"
- package: "ffmpeg"
- package: "file"
- package: "g++"
- package: "gcc"
- package: "git"
- package: "imagemagick"
- package: "libffi-dev"
- package: "libgdbm-dev"
- package: "libicu-dev"
- package: "libidn11-dev"
- package: "libncurses5-dev"
- package: "libpq-dev"
- package: "libprotobuf-dev"
- package: "libreadline-dev"
- package: "libssl-dev"
- package: "libxml2-dev"
- package: "libxslt1-dev"
- package: "libyaml-dev"
- package: "nginx"
- package: "nodejs"
- package: "pkg-config"
- package: "protobuf-compiler"
- package: "sudo"
- package: "systemd"
- package: "ufw"
- package: "unattended-upgrades"
- package: "yarn"
- package: "zlib1g-dev"
- package: "libssl-dev"
postgres:
packages:
- package: "libpq-dev"
- package: "postgresql"
- package: "postgresql-contrib"
- package: "python3-psycopg2"
- package: "sudo"
#Ansible can't set permissions on temporary files Ansible needs
#to create when becoming an unprivileged user when running as unprivileged user
#https://docs.ansible.com/ansible-core/2.12/user_guide/become.html#risks-of-becoming-an-unprivileged-user
- package: "acl"
redis:
packages:
- package: "redis-server"
- package: "redis-tools"