【发布时间】:2021-01-19 16:06:26
【问题描述】:
我只想通过 ansible 使用 molecule 完成一项简单的任务。以下代码如下:
- name: Continue to install applications
snap:
name: "{{ item }}"
classic: true
loop:
- bitwarden
- clion
但我收到以下错误。使用 --debug 选项我没有得到更多信息
Task exception was never retrieved
future: <Task finished name='Task-19' coro=<_read_stream() done, defined at /home/vlad/.local/lib/python3.8/site-packages/subprocess_tee/__init__.py:21> exception=ValueError('Separator is found, but chunk is longer than limit')>
Traceback (most recent call last):
File "/usr/lib/python3.8/asyncio/streams.py", line 540, in readline
line = await self.readuntil(sep)
File "/usr/lib/python3.8/asyncio/streams.py", line 635, in readuntil
raise exceptions.LimitOverrunError(
asyncio.exceptions.LimitOverrunError: Separator is found, but chunk is longer than limit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vlad/.local/lib/python3.8/site-packages/subprocess_tee/__init__.py", line 23, in _read_stream
line = await stream.readline()
File "/usr/lib/python3.8/asyncio/streams.py", line 549, in readline
raise ValueError(e.args[0])
ValueError: Separator is found, but chunk is longer than limit
CRITICAL Ansible return code was 2, command was: ansible-playbook --diff --inventory....
Ansible 版本:
ansible 2.10.4
config file = None
configured module search path = ['/home/vlad/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/vlad/.local/lib/python3.8/site-packages/ansible
executable location = /home/vlad/.local/bin/ansible
python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
分子版:
molecule 3.2.2 using python 3.8
ansible:2.10.4
delegated:3.2.2 from molecule
vagrant:0.6.1 from molecule_vagrant
【问题讨论】:
标签: python python-3.x linux ansible ansible-2.x