# Usage: See defaults/main.yml for description of config parameters ```yaml - name: "Install mastodon" hosts: czynna1 vars: mastodon_docker_web_port: 3008 mastodon_docker_streaming_port: 3009 mastodon_docker_main_storage: "/mnt/juice/mastodon-docker" roles: - role: mastodon-docker tags: - mastodon-toot vars: mastodon_docker_domain: "toot.eu" mastodon_docker_user: "mastodon-toot" mastodon_docker_max_post_length: 500 mastodon_docker_home: "/var/www/mastodon-toot" mastodon_docker_postgres_storage: "{{ mastodon_docker_main_storage }}/postgres" mastodon_docker_redis_storage: "{{ mastodon_docker_main_storage }}/redis" mastodon_docker_elasticsearch_storage: "{{ mastodon_docker_main_storage }}/elasticsearch" mastodon_docker_system_storage: "{{ mastodon_docker_main_storage }}/system" mastodon_docker_backup_storage: "{{ mastodon_docker_main_storage }}/backups" mastodon_docker_cache_storage: "{{ mastodon_docker_main_storage }}/cache" mastodon_docker_enable_elasticsearch: false mastodon_docker_elasticsearch_port: 9200 mastodon_docker_mastodon_secret: mastodon_docker_vapid_public: mastodon_docker_vapid_private: mastodon_docker_ar_encryption_deterministic_key: mastodon_docker_ar_encryption_derivation_salt: mastodon_docker_ar_encryption_primary_key: mastodon_docker_smtp: server: example.com port: 587 login: login password: from: mastodon@example.com - role: sealcode.nginx.proxies tags: - mastodon-toot vars: - domain: "toot.eu" site_name: "mastodon-toot" upstream: "http://127.0.0.1:{{mastodon_docker_web_port}}" websocket_endpoints: - url: "/api/v1/streaming" upstream: "http://127.0.0.1:{{ mastodon_docker_streaming_port }}" ```