ldh_mastodon.yml 1.35 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
---
- name: Simple Mastodon role for Keel/LDH
  hosts: all
  become: yes
  roles:
    - role: ldh_mastodon
  vars:
    ldh_mastodon_domain: freedom.test
    ldh_mastodon_ssl_cert_src: "certs/mastodon.freedom.test.crt"
    ldh_mastodon_ssl_cert: "/etc/ssl/certs/mastodon.freedom.test.crt"
    ldh_mastodon_ssl_key_src: "cert_keys/mastodon.freedom.test.key"
    ldh_mastodon_ssl_key: "/etc/ssl/private/mastodon.freedom.test.key"

    # See https://github.com/tootsuite/mastodon/blob/v2.7.1/.env.production.sample#L34
    # to find out how to create proper values for these variables:
    ldh_mastodon_secret_key_base: "repalcethistextwithyoursecretkey"
    ldh_mastodon_otp_secret: "repalcethistextwithyouroptsecret"
    ldh_mastodon_vapid_private_key: "repalcethistextwithyourvapidprivatetkey"
    ldh_mastodon_vapid_public_key: "repalcethistextwithyourvapidpublickey"

    # Leaving this variable commented will create a file named
    # 'mastodon_admin_passwd' in your playbook directory with the
    # admin password:
    # ldh_mastodon_admin_passwd: "supersecretpass"

    # LDAP vars
    ldh_mastodon_ldap_host: ldap.freedom.test
    ldh_mastodon_ldap_port: 636
    ldh_mastodon_ldap_base: "ou=people,dc=freedom,dc=test"
    ldh_mastodon_ldap_bind_dn: "cn=admin,dc=freedom,dc=test"
    ldh_mastodon_ldap_password: "verystrongpassword"
    ldh_mastodon_ldap_tls_no_verify: "true"