Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

44 linhas
1.4 KiB

  1. ---
  2. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
  3. when: "run_setup | bool and matrix_postgres_enabled | bool"
  4. tags:
  5. - setup-all
  6. - setup-postgres
  7. - install-postgres
  8. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
  9. when: run_setup | bool
  10. tags:
  11. - setup-all
  12. - setup-postgres
  13. - install-postgres
  14. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_postgres.yml"
  15. when: run_postgres_import | bool
  16. tags:
  17. - import-postgres
  18. # The `run_postgres_import_sqlite_db` variable had better be renamed to be consistent,
  19. # but that's a breaking change which may cause trouble for people.
  20. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
  21. when: run_postgres_import_sqlite_db | bool
  22. tags:
  23. - import-synapse-sqlite-db
  24. # Perhaps we need a new variable here, instead of `run_postgres_import_sqlite_db`.
  25. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_generic_sqlite_db.yml"
  26. when: run_postgres_import_sqlite_db | bool
  27. tags:
  28. - import-generic-sqlite-db
  29. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
  30. when: run_postgres_upgrade | bool
  31. tags:
  32. - upgrade-postgres
  33. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
  34. when: run_postgres_vacuum | bool
  35. tags:
  36. - run-postgres-vacuum