- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在这样做:
- name: Add Bitbucket in the SSH configuration
community.general.ssh_config:
user: "{{ jenkins_user }}"
host: bitbucket
remote_user: git
hostname: "{{ bitbucket_hostname }}"
port: '7999'
identity_file: "/home/{{ jenkins_user }}/.ssh/{{ ssh_private_key }}"
state: present
我收到此错误:
amazon-ebs: TASK [Add Bitbucket in the SSH configuration] **********************************
amazon-ebs: Friday 16 April 2021 14:35:03 +0200 (0:00:00.599) 0:17:50.265 **********
amazon-ebs: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'storm'
amazon-ebs: fatal: [default]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (stormssh) on ip-172-31-4-198's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
我已经这么做了
pip install storm
在 community.general.ssh_config
之前执行此操作时:
- name: Install storm python package
pip:
name: storm
我收到此错误:
amazon-ebs: TASK [Install storm python package] ********************************************[0m[0;32m
amazon-ebs: Friday 16 April 2021 15:17:06 +0200 (0:00:00.594) 0:18:14.936 **********[0m[0;32m
amazon-ebs: fatal: [default]: FAILED! => {"changed": false, "cmd": ["/usr/bin/pip3", "install", "storm"], "msg": "stdout: Collecting storm\n Downloading storm-0.24.tar.gz (281 kB)\nRequirement already satisfied: six in /usr/lib/python3/dist-packages (from storm) (1.14.0)\nBuilding wheels for collected packages: storm\n Building wheel for storm (setup.py): started\n Building wheel for storm (setup.py): finished with status 'error'\n Running setup.py clean for storm\nFailed to build storm\nInstalling collected packages: storm\n Running setup.py install for storm: started\n Running setup.py install for storm: finished with status 'error'\n\n:stderr: ERROR: Command errored out with exit status 1:\n command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nuqyzvzg/storm/setup.py'"'"'; file='"'"'/tmp/pip-install-nuqyzvzg/storm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-isx3tjl6\n cwd: /tmp/pip-install-nuqyzvzg/storm/\n Complete output (124 lines):\n running bdist_wheel\n running build\n running build_py\n creating build\n creating build/lib.linux-x86_64-3.8\n creating build/lib.linux-x86_64-3.8/storm\n copying storm/uri.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/database.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/exceptions.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/properties.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/locals.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/references.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/wsgi.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/xid.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/testing.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/store.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/sqlobject.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/compat.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/event.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/base.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/variables.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/expr.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/tracer.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/cache.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/info.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/init.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/tz.py -> build/lib.linux-x86_64-3.8/storm\n creating build/lib.linux-x86_64-3.8/storm/twisted\n copying storm/twisted/testing.py -> build/lib.linux-x86_64-3.8/storm/twisted\n copying storm/twisted/transact.py -> build/lib.linux-x86_64-3.8/storm/twisted\n copying storm/twisted/init.py -> build/lib.linux-x86_64-3.8/storm/twisted\n creating build/lib.linux-x86_64-3.8/storm/databases\n copying storm/databases/postgres.py -> build/lib.linux-x86_64-3.8/storm/databases\n copying storm/databases/sqlite.py -> build/lib.linux-x86_64-3.8/storm/databases\n copying storm/databases/init.py -> build/lib.linux-x86_64-3.8/storm/databases\n creating build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/uri.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/database.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/properties.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/wsgi.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/helper.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/sqlobject.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/event.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/base.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/variables.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/expr.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/tracer.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/mocker.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/cache.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/info.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/init.py -> build/lib.linux-x86_64-3.8/storm/tests\n creating build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/metaconfigure.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/metadirectives.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/testing.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/adapters.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/zstorm.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/schema.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/interfaces.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/init.py -> build/lib.linux-x86_64-3.8/storm/zope\n creating build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/conf.py -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/init.py -> build/lib.linux-x86_64-3.8/storm/docs\n creating build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/schema.py -> build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/sharding.py -> build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/patch.py -> build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/init.py -> build/lib.linux-x86_64-3.8/storm/schema\n creating build/lib.linux-x86_64-3.8/storm/tests/twisted\n copying storm/tests/twisted/transact.py -> build/lib.linux-x86_64-3.8/storm/tests/twisted\n copying storm/tests/twisted/init.py -> build/lib.linux-x86_64-3.8/storm/tests/twisted\n creating build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/postgres.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/sqlite.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/proxy.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/base.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/init.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n creating build/lib.linux-x86_64-3.8/storm/tests/django\n copying storm/tests/django/init.py -> build/lib.linux-x86_64-3.8/storm/tests/django\n creating build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/block.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/postgres.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/sqlite.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/base.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/init.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n creating build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/testing.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/adapters.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/zstorm.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/init.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n creating build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/schema.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/sharding.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/patch.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/init.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n running egg_info\n writing storm.egg-info/PKG-INFO\n writing dependency_links to storm.egg-info/dependency_links.txt\n writing requirements to storm.egg-info/requires.txt\n writing top-level names to storm.egg-info/top_level.txt\n reading manifest file 'storm.egg-info/SOURCES.txt'\n reading manifest template 'MANIFEST.in'\n no previously-included directories found matching 'storm/docs/_build'\n no previously-included directories found matching 'db'\n writing manifest file 'storm.egg-info/SOURCES.txt'\n copying storm/cextensions.c -> build/lib.linux-x86_64-3.8/storm\n copying storm/zope/configure.zcml -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/meta.zcml -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/docs/Makefile -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/api.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/index.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/infoheritance.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/tutorial.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/zope.rst -> build/lib.linux-x86_64-3.8/storm/docs\n running build_ext\n building 'storm.cextensions' extension\n creating build/temp.linux-x86_64-3.8\n creating build/temp.linux-x86_64-3.8/storm\n x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c storm/cextensions.c -o build/temp.linux-x86_64-3.8/storm/cextensions.o\n storm/cextensions.c:23:10: fatal error: Python.h: No such file or directory\n 23 | #include <Python.h>\n | ^~~~~~~~~~\n compilation terminated.\n error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n ----------------------------------------\n ERROR: Failed building wheel for storm\n ERROR: Command errored out with exit status 1:\n command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nuqyzvzg/storm/setup.py'"'"'; file='"'"'/tmp/pip-install-nuqyzvzg/storm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-3pa_d1bw/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/storm\n cwd: /tmp/pip-install-nuqyzvzg/storm/\n Complete output (124 lines):\n running install\n running build\n running build_py\n creating build\n creating build/lib.linux-x86_64-3.8\n creating build/lib.linux-x86_64-3.8/storm\n copying storm/uri.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/database.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/exceptions.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/properties.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/locals.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/references.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/wsgi.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/xid.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/testing.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/store.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/sqlobject.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/compat.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/event.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/base.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/variables.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/expr.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/tracer.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/cache.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/info.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/init.py -> build/lib.linux-x86_64-3.8/storm\n copying storm/tz.py -> build/lib.linux-x86_64-3.8/storm\n creating build/lib.linux-x86_64-3.8/storm/twisted\n copying storm/twisted/testing.py -> build/lib.linux-x86_64-3.8/storm/twisted\n copying storm/twisted/transact.py -> build/lib.linux-x86_64-3.8/storm/twisted\n copying storm/twisted/init.py -> build/lib.linux-x86_64-3.8/storm/twisted\n creating build/lib.linux-x86_64-3.8/storm/databases\n copying storm/databases/postgres.py -> build/lib.linux-x86_64-3.8/storm/databases\n copying storm/databases/sqlite.py -> build/lib.linux-x86_64-3.8/storm/databases\n copying storm/databases/init.py -> build/lib.linux-x86_64-3.8/storm/databases\n creating build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/uri.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/database.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/properties.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/wsgi.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/helper.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/sqlobject.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/event.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/base.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/variables.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/expr.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/tracer.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/mocker.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/cache.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/info.py -> build/lib.linux-x86_64-3.8/storm/tests\n copying storm/tests/init.py -> build/lib.linux-x86_64-3.8/storm/tests\n creating build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/metaconfigure.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/metadirectives.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/testing.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/adapters.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/zstorm.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/schema.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/interfaces.py -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/init.py -> build/lib.linux-x86_64-3.8/storm/zope\n creating build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/conf.py -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/init.py -> build/lib.linux-x86_64-3.8/storm/docs\n creating build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/schema.py -> build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/sharding.py -> build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/patch.py -> build/lib.linux-x86_64-3.8/storm/schema\n copying storm/schema/init.py -> build/lib.linux-x86_64-3.8/storm/schema\n creating build/lib.linux-x86_64-3.8/storm/tests/twisted\n copying storm/tests/twisted/transact.py -> build/lib.linux-x86_64-3.8/storm/tests/twisted\n copying storm/tests/twisted/init.py -> build/lib.linux-x86_64-3.8/storm/tests/twisted\n creating build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/postgres.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/sqlite.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/proxy.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/base.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n copying storm/tests/databases/init.py -> build/lib.linux-x86_64-3.8/storm/tests/databases\n creating build/lib.linux-x86_64-3.8/storm/tests/django\n copying storm/tests/django/init.py -> build/lib.linux-x86_64-3.8/storm/tests/django\n creating build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/block.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/postgres.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/sqlite.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/base.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n copying storm/tests/store/init.py -> build/lib.linux-x86_64-3.8/storm/tests/store\n creating build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/testing.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/adapters.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/zstorm.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n copying storm/tests/zope/init.py -> build/lib.linux-x86_64-3.8/storm/tests/zope\n creating build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/schema.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/sharding.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/patch.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n copying storm/tests/schema/init.py -> build/lib.linux-x86_64-3.8/storm/tests/schema\n running egg_info\n writing storm.egg-info/PKG-INFO\n writing dependency_links to storm.egg-info/dependency_links.txt\n writing requirements to storm.egg-info/requires.txt\n writing top-level names to storm.egg-info/top_level.txt\n reading manifest file 'storm.egg-info/SOURCES.txt'\n reading manifest template 'MANIFEST.in'\n no previously-included directories found matching 'storm/docs/_build'\n no previously-included directories found matching 'db'\n writing manifest file 'storm.egg-info/SOURCES.txt'\n copying storm/cextensions.c -> build/lib.linux-x86_64-3.8/storm\n copying storm/zope/configure.zcml -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/zope/meta.zcml -> build/lib.linux-x86_64-3.8/storm/zope\n copying storm/docs/Makefile -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/api.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/index.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/infoheritance.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/tutorial.rst -> build/lib.linux-x86_64-3.8/storm/docs\n copying storm/docs/zope.rst -> build/lib.linux-x86_64-3.8/storm/docs\n running build_ext\n building 'storm.cextensions' extension\n creating build/temp.linux-x86_64-3.8\n creating build/temp.linux-x86_64-3.8/storm\n x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c storm/cextensions.c -o build/temp.linux-x86_64-3.8/storm/cextensions.o\n storm/cextensions.c:23:10: fatal error: Python.h: No such file or directory\n 23 | #include <Python.h>\n | ^~~~~~~~~~\n compilation terminated.\n error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n ----------------------------------------\nERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nuqyzvzg/storm/setup.py'"'"'; file='"'"'/tmp/pip-install-nuqyzvzg/storm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-3pa_d1bw/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/storm Check the logs for full command output.\n"}[0m
最佳答案
stormssh 模块需要安装在运行该模块的远程主机上,而不是安装在运行 playbook 的本地主机上。在执行 ssh_config
任务之前,您可能需要一个 ansible 任务来在目标主机上安装 stormssh
。
可能是这样的:
- name: Install stormssh module
pip:
name: stormssh
- name: Add Bitbucket in the SSH configuration
community.general.ssh_config:
user: "{{ jenkins_user }}"
host: bitbucket
remote_user: git
hostname: "{{ bitbucket_hostname }}"
port: '7999'
identity_file: "/home/{{ jenkins_user }}/.ssh/{{ ssh_private_key }}"
state: present
关于python - Ansible 社区.general.ssh_config : ModuleNotFoundError: No module named 'storm' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67125450/
如何在 .ssh/config 文件中进行多端口转发?在命令行上,我可以执行以下操作: ssh 10.0.0.10 -L 8080:127.0.0.1:8080 -L 8443:127.0.0
我将 python 与 paramiko(包装在 pysftp 中)一起使用,似乎存在一个问题,如果它无法在 ssh 期间进行身份验证,它将挂起很长时间。我想不出一种方法来设置连接超时,我在很多机器上
这是默认值 /etc/ssh/ssh_config ,其中包含 #ForwardX11 no,我想更改它,所以我这样做了 augtool set "/files/etc/ssh/ssh_config/
我需要使用 SSH 连接到服务器来下载文件。我有 Ubuntu,并以标准方式设置了 SSH:我有一个 ssh_config文件在 .ssh它为服务器地址( host_key )和用户名定义了一个主机条
我正在尝试将此 ssh 命令转换为我的 ssh_config。 ssh_config 中 -L 的等效项是什么?我以为是 localForward,但从结果来看,我发现它看起来不是那样的。 SSH 命
documentation想要使用 ssh_config 时还有很多不足之处。有人可以提供关于如何实际导入 ssh_config 的概念验证代码吗? 除了我缺乏理解之外,我也不确定为什么以下代码不起作
我正在这样做: - name: Add Bitbucket in the SSH configuration community.general.ssh_config: user: "{{
我想设置自动rsync将我的 OS X 机器上的一堆用户帐户备份到 linux 文件服务器的工作。我已经设置了从我的帐户到另一台机器的无密码 ssh,它工作得很好,所以我尝试使用这个命令: sudo
我正在这样做: - name: Add Bitbucket in the SSH configuration community.general.ssh_config: user: "{{
在 openssh 中是否可以编辑 ssh_config 或 sshd_config 文件以仅启用支持密码的 TLS 1.2 并禁用 tls1.1 及以下、sslv3 及以下以便 SSH 连接仅使用
我在 Windows 7 上使用 Visual Studio Code,以及 Microsoft 的远程 SSH 扩展。我添加了新的远程主机,并将配置保存在 ssh_config 文件中。 当我打开该
我是一名优秀的程序员,十分优秀!