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

42 строки
1.3 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. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
  8. when: run_setup | bool
  9. tags:
  10. - setup-all
  11. - setup-postgres
  12. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_postgres.yml"
  13. when: run_postgres_import | bool
  14. tags:
  15. - import-postgres
  16. # The `run_postgres_import_sqlite_db` variable had better be renamed to be consistent,
  17. # but that's a breaking change which may cause trouble for people.
  18. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
  19. when: run_postgres_import_sqlite_db | bool
  20. tags:
  21. - import-synapse-sqlite-db
  22. # Perhaps we need a new variable here, instead of `run_postgres_import_sqlite_db`.
  23. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_generic_sqlite_db.yml"
  24. when: run_postgres_import_sqlite_db | bool
  25. tags:
  26. - import-generic-sqlite-db
  27. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
  28. when: run_postgres_upgrade | bool
  29. tags:
  30. - upgrade-postgres
  31. - ansible.builtin.import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
  32. when: run_postgres_vacuum | bool
  33. tags:
  34. - run-postgres-vacuum