I have installed the dependencies OK.
[root@V99SRH-003024 backup]# pip list|grep crypto
cryptography 2.4.2
[root@V99SRH-003024 backup]# pip list|grep psycopg2-binary
psycopg2-binary 2.7.6.1
My inventory installation is:
[root@xxx installer]# cat inventory |grep -v “#”
localhost ansible_connection=local ansible_python_interpreter=“/usr/bin/env python”
[all:vars]
dockerhub_base=ansible
dockerhub_version=latest
postgres_data_dir=/srv/pgdocker
host_port=80
use_docker_compose=True
docker_compose_dir=/var/lib/awx
docker_remove_local_images=True
pg_username=awx
pg_password=awxpass
pg_database=awx
pg_port=5432
default_admin_user=admin
default_admin_password=admin32awx
secret_key=awxsecret
project_data_dir=/var/lib/awx/projects
I have a awx installation with dockers.
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9c36aaabc14a ansible/awx_task:latest “/tini – /bin/sh …” 3 months ago Up 6 weeks 8052/tcp awx_task_1
a6881a17b80f ansible/awx_web:latest “/tini – /bin/sh …” 3 months ago Up 6 weeks 0.0.0.0:80->8052/tcp awx_web_1
e224fd865187 postgres:9.6 “docker-entrypoint…” 3 months ago Up 6 weeks 5432/tcp awx_postgres_1
4e9d3980e4b2 ansible/awx_rabbitmq:3.7.4 “docker-entrypoint…” 3 months ago Up 6 weeks 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 25672/tcp awx_rabbitmq_1
c2a41c882e0c memcached:alpine “docker-entrypoint…” 3 months ago Up 6 weeks 11211/tcp awx_memcached_1
When I edit edit awx-migrate-wrapper
and set the right AWX_SRC_*
and AWX_DST_*, I have a doubt.
What do I put in export AWX_SRC_DBHOST?
If I put localhost, it fails. What is the value of
AWX_SRC_DBHOST in a AWX with dockers?
`
[root@V99SRH-003024 awx-migrate]# ./awx-migrate-wrapper
I am unable to connect to source database:
could not connect to server: Connection refused
Is the server running on host “localhost” (127.0.0.1) and accepting
TCP/IP connections on port 5432?
[root@V99SRH-003024 awx-migrate]#
`