Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

46 rader
1.3 KiB

  1. ---
  2. - import_tasks: "{{ role_path }}/tasks/init.yml"
  3. tags:
  4. - always
  5. - 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. - import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
  11. when: run_setup|bool
  12. tags:
  13. - setup-all
  14. - setup-postgres
  15. - 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. - 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. - 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. - import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
  31. when: run_postgres_upgrade|bool
  32. tags:
  33. - upgrade-postgres
  34. - import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
  35. when: run_postgres_vacuum|bool
  36. tags:
  37. - run-postgres-vacuum