我在安装Ansible AWX时遇到问题;当我执行ansible剧本( ansible-playbook -i库存install.yml )时,我那里有5/5个容器(使用 docker ps -a )。但是awx_web和 awx_task 无限重启。有帮助吗?
[root@CLOUDSVRANSIBLE installer]# docker ps -a
5d132be6d6cd ansible/awx_task:latest "/tini -- /bin/sh ..." 8 minutes ago Restarting (127) About a minute ago awx_task
cb83308dcfcf ansible/awx_web:latest "/tini -- /bin/sh ..." 8 minutes ago Restarting (127) About a minute ago awx_web
43b314e42815 postgres:9.6 "docker-entrypoint..." 8 minutes ago Up 8 minutes 5432/tcp awx_postgres
9c73fd740f98 ansible/awx_rabbitmq:3.7.4 "docker-entrypoint..." 8 minutes ago Up 8 minutes 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 25672/tcp awx_rabbitmq
8fcbf04c4c96 memcached:alpine "docker-entrypoint..." 8 minutes ago Up 8 minutes 11211/tcp awx_memcached
日志:
[root@CLOUDSVRANSIBLE installer]# docker logs awx_task
/bin/sh: /usr/bin/launch_awx_task.sh: No such file or directory
/bin/sh: /usr/bin/launch_awx_task.sh: No such file or directory
/bin/sh: /usr/bin/launch_awx_task.sh: No such file or directory
/bin/sh: /usr/bin/launch_awx_task.sh: No such file or directory
...
[root@CLOUDSVRANSIBLE installer]# docker logs awx_web
/bin/sh: /usr/bin/launch_awx.sh: No such file or directory
/bin/sh: /usr/bin/launch_awx.sh: No such file or directory
/bin/sh: /usr/bin/launch_awx.sh: No such file or directory
/bin/sh: /usr/bin/launch_awx.sh: No such file or directory
...
有帮助吗?谢谢!
答案 0 :(得分:0)
对我来说,AWX的安装未正确完成。
您正在尝试哪种类型的安装?什么是底层操作系统?
在角色image_build中引用了复制这些bash脚本的任务。
您能看看剧本的输出内容,看看出了什么问题吗? 您可能需要使用-vvvvvv来运行它以获得一些不错的信息。
答案 1 :(得分:0)
对不起,答案太迟了...
与nginx发生端口冲突。
谢谢!