Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

34 righe
983 B

  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. # Common tasks, required by almost any method below.
  7. # The recurse option of this task will always return a change, which should be ignored
  8. - name: Ensure SSL certificate paths exists
  9. file:
  10. path: "{{ item }}"
  11. state: directory
  12. mode: 0770
  13. owner: "{{ matrix_user_username }}"
  14. group: "{{ matrix_user_groupname }}"
  15. recurse: true
  16. changed_when: False
  17. with_items:
  18. - "{{ matrix_ssl_log_dir_path }}"
  19. - "{{ matrix_ssl_config_dir_path }}"
  20. when: "matrix_ssl_retrieval_method != 'none'"
  21. # Method specific tasks follow
  22. - import_tasks: tasks/ssl/setup_ssl_lets_encrypt.yml
  23. - import_tasks: tasks/ssl/setup_ssl_self_signed.yml
  24. - import_tasks: tasks/ssl/setup_ssl_manually_managed.yml