emnify / matrix-synapse-auto-deploy

Auto-deployment process for matrix-org/synapse
68 stars 17 forks source link

Playbook #7

Open ncamacho97 opened 6 years ago

ncamacho97 commented 6 years ago

I tried making a playbook but when i put the stuff like username and then run the playbook code I get a syntax error

hugoShaka commented 6 years ago

Hi, Can you test the role with the playbook I wrote below ? If it fails could you paste me your error and the ansible version you're using ?

---
- hosts: synapse
  become: yes

  vars:
    username: synapse
    git_repo: https://github.com/matrix-org/synapse/tarball/master
    hostname: 10.99.99.230
    enable_registration: true
    enable_registration_captcha: false
    recaptcha_private_key: YOURPRIVATEKEYHERE
    recaptcha_public_key: YOURPUBLICKEYHERE
    turn_shared_secret: YOURSHAREDSECRETHERE
    make_migration: true
    database_secret: YOURDATABASESECRETHERE
    absolute_path_certificate: /home/{{ username }}/.synapse/{{ hostname }}.tls.crt
    absolute_path_key: /home/{{ username }}/.synapse/{{ hostname }}.tls.key
    generate_DH_params: true   # Generate DH parameters
    DH_params_location: /etc/ssl/diffihellman.pem

  roles:
    - the_role_name