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

24 строки
797 B

  1. ---
  2. - name: Ensure matrix-postgres is started
  3. ansible.builtin.service:
  4. name: matrix-postgres
  5. state: started
  6. daemon_reload: true
  7. register: matrix_postgres_service_start_result
  8. - name: Wait a bit, so that Postgres can start
  9. ansible.builtin.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. ansible.builtin.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