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

52 строки
1.4 KiB

  1. - import_tasks: "{{ role_path }}/tasks/init.yml"
  2. tags:
  3. - always
  4. - import_tasks: "{{ role_path }}/tasks/validate_config.yml"
  5. when: "run_setup|bool and matrix_postgres_enabled|bool"
  6. tags:
  7. - setup-all
  8. - setup-postgres
  9. - import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
  10. when: run_setup|bool
  11. tags:
  12. - setup-all
  13. - setup-postgres
  14. - 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. - 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. - 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. # Imports slacks neDB to postgres.
  30. - import_tasks: "{{ role_path }}/tasks/import_nedb.yml"
  31. vars:
  32. database: appservice_slack
  33. when: run_postgres_import_nedb|bool
  34. tags:
  35. - import-slack-nedb
  36. - import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
  37. when: run_postgres_upgrade|bool
  38. tags:
  39. - upgrade-postgres
  40. - import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
  41. when: run_postgres_vacuum|bool
  42. tags:
  43. - run-postgres-vacuum