Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
746 B

  1. ---
  2. - name: Ensure matrix-postgres is started
  3. service:
  4. name: matrix-postgres
  5. state: started
  6. daemon_reload: yes
  7. register: matrix_postgres_service_start_result
  8. - name: Wait a bit, so that Postgres can start
  9. wait_for:
  10. timeout: "{{ matrix_postgres_additional_databases_postgres_start_wait_timeout_seconds }}"
  11. delegate_to: 127.0.0.1
  12. become: false
  13. when: "matrix_postgres_service_start_result.changed|bool"
  14. - name: Create additional Postgres user and database
  15. include_tasks: "{{ role_path }}/tasks/util/create_additional_database.yml"
  16. with_items: "{{ matrix_postgres_additional_databases }}"
  17. loop_control:
  18. loop_var: additional_db
  19. # Suppress logging to avoid dumping the credentials to the shell
  20. no_log: true