Explorar el Código

Determine matrix-postgres IP address without relying on jq

To avoid needing to have `jq` installed on the machine, we could:
- try to run jq in a Docker container using some small image providing
that
- better yet, avoid `jq` altogether
pull/740/head
Slavi Pantaleev hace 5 años
padre
commit
e2952f16f7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      roles/matrix-postgres/tasks/util/create_additional_databases.yml

+ 1
- 1
roles/matrix-postgres/tasks/util/create_additional_databases.yml Ver fichero

@@ -1,6 +1,6 @@
---
- name: Retrieve IP of postgres container
shell: "{{ matrix_host_command_docker }} inspect matrix-postgres | jq -r '.[0].NetworkSettings.Networks.{{ matrix_docker_network }}.IPAddress'"
command: "{{ matrix_host_command_docker }} inspect matrix-postgres --format='{% raw %}{{ .NetworkSettings.Networks.{% endraw %}{{ matrix_docker_network }}{% raw %}.IPAddress }}{% endraw %}'"
register: matrix_postgres_container_ip

- name: Create additional users in postgres


Cargando…
Cancelar
Guardar