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

46 строки
1.4 KiB

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