Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

20 řádky
752 B

  1. ---
  2. - name: Fail if playbook called incorrectly
  3. fail: msg="The `username` variable needs to be provided to this playbook, via --extra-vars"
  4. when: "username is not defined or username == '<your-username>'"
  5. - name: Fail if playbook called incorrectly
  6. fail: msg="The `password` variable needs to be provided to this playbook, via --extra-vars"
  7. when: "password is not defined or password == '<your-password>'"
  8. - name: Ensure matrix-synapse is started
  9. service: name=matrix-synapse state=started daemon_reload=yes
  10. register: start_result
  11. - name: Wait a while, so that Matrix Synapse can manage to start
  12. pause: seconds=7
  13. when: start_result.changed
  14. - name: Register user
  15. shell: "matrix-synapse-register-user {{ username }} {{ password }}"