Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
1.1 KiB

  1. ---
  2. - name: Fail if using unsupported SSL certificate retrieval method
  3. fail:
  4. msg: "The `matrix_ssl_retrieval_method` variable contains an unsupported value"
  5. when: "matrix_ssl_retrieval_method not in ['lets-encrypt', 'self-signed', 'manually-managed']"
  6. # Common tasks, required by any method below.
  7. - name: Determine domains that we require certificates for (Matrix)
  8. set_fact:
  9. domains_requiring_certificates: "['{{ hostname_matrix }}']"
  10. - name: Determine domains that we require certificates for (Riot)
  11. set_fact:
  12. domains_requiring_certificates: "{{ domains_requiring_certificates + [hostname_riot] }}"
  13. when: "matrix_riot_web_enabled"
  14. - name: Ensure SSL certificate paths exists
  15. file:
  16. path: "{{ item }}"
  17. state: directory
  18. mode: 0770
  19. owner: "{{ matrix_user_username }}"
  20. group: "{{ matrix_user_username }}"
  21. with_items:
  22. - "{{ matrix_ssl_log_dir_path }}"
  23. - "{{ matrix_ssl_config_dir_path }}"
  24. # Method specific tasks follow
  25. - include: tasks/setup/ssl/setup_ssl_lets_encrypt.yml
  26. - include: tasks/setup/ssl/setup_ssl_self_signed.yml
  27. - include: tasks/setup/ssl/setup_ssl_manually_managed.yml