Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

37 строки
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', 'none']"
  6. - name: Fail if using unsupported private key type
  7. fail:
  8. msg: "The `matrix_ssl_lets_encrypt_key_type` variable contains an unsupported value"
  9. when: "matrix_ssl_lets_encrypt_key_type not in ['rsa', 'ecdsa']"
  10. # Common tasks, required by almost any method below.
  11. - name: Ensure SSL certificate paths exists
  12. file:
  13. path: "{{ item }}"
  14. state: directory
  15. mode: 0770
  16. owner: "{{ matrix_user_username }}"
  17. group: "{{ matrix_user_groupname }}"
  18. recurse: true
  19. with_items:
  20. - "{{ matrix_ssl_log_dir_path }}"
  21. - "{{ matrix_ssl_config_dir_path }}"
  22. when: "matrix_ssl_retrieval_method != 'none'"
  23. # Method specific tasks follow
  24. - import_tasks: tasks/ssl/setup_ssl_lets_encrypt.yml
  25. - import_tasks: tasks/ssl/setup_ssl_self_signed.yml
  26. - import_tasks: tasks/ssl/setup_ssl_manually_managed.yml