我正在尝试使用Ansible容器构建一个非常默认的示例(ansible.django-template),并使用ansible-container build
构建
Building Docker Engine context...
Starting Docker build of Ansible Container Conductor image (please be patient)...
Traceback (most recent call last):
File "/usr/bin/conductor", line 11, in <module>
load_entry_point('ansible-container', 'console_scripts', 'conductor')()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 560, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2648, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2302, in load
return self.resolve()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2308, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/_ansible/container/cli.py", line 4, in <module>
from .utils.visibility import getLogger
File "/_ansible/container/utils/__init__.py", line 25, in <module>
from ansible.vars import VariableManager
ImportError: cannot import name VariableManager
Conductor terminated. Cleaning up. command_rc=1 conductor_id=5d96fc65006af97aa4deb3d0adaae44104f82fd591d7f9199449b1b9efaa2c6d save_container=False
ERROR Conductor exited with status 1
来自pip + ansible-container 0.9.0.0 [docker]
的Ansible 2.3.0.0我做错了什么?
答案 0 :(得分:0)
你真的需要使用最新版本的ansible-container,它只能从“来源”安装,如下所示:
https://docs.ansible.com/ansible-container/installation.html
自您可以使用pip下载的版本以来,已经有很多更改。