2024-08-02 22:19:54 >>> 任务准备阶段
2024-08-02 22:19:54 >>> 开始执行任务
2024-08-02 22:19:54
PLAY [all] *********************************************************************
2024-08-02 22:19:54
TASK [Posix ping] **************************************************************
2024-08-02 22:19:55 [WARNING]: No python interpreters found for host router0 (tried [‘python3.11’,
2024-08-02 22:19:55 ‘python3.10’, ‘python3.9’, ‘python3.8’, ‘python3.7’, ‘python3.6’, ‘python3.5’,
2024-08-02 22:19:55 ‘/usr/bin/python3’, ‘/usr/libexec/platform-python’, ‘python2.7’,
2024-08-02 22:19:55 ‘/usr/bin/python’, ‘python’])
2024-08-02 22:19:55 fatal: [router0]: FAILED! => {“ansible_facts”: {“discovered_interpreter_python”: “/usr/bin/python”}, “changed”: false, “module_stderr”: “Shared connection to 192.168.88.1 closed.\r\n”, “module_stdout”: “/bin/sh: /usr/bin/python: not found\r\n”, “msg”: “The module failed to execute correctly, you probably need to set the interpreter.\nSeestdout/stderr for the exact error”, “rc”: 127}
2024-08-02 22:19:55
PLAY RECAP *********************************************************************
router0 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2024-08-02 22:19:55 Task assets.tasks.ping.test_assets_connectivity_task[bfdb0b7b-3753-438c-becb-fbf89ed6fb44] succeeded in 1.4868322999991506s: None
什么类型的资产?资产上有python环境吗,至少python2.7+
如果不能更新资产的python版本可以设置自定义ssh改密
ssh 资产,资产上没有python
我安装的是openeuler 22.03 系统默认只有python3和python3.9的命令,这一块jumpserver会做适配吗?还是只能我们自己在安装个python2命令?
支持python3的
如果仅资产测试可连接性。可以更换探测方式比如pyfreerdp