К сожалению, запланированные задания больше не работают на узлах, которые были обновлены с Ubuntu 22.04 до Ubuntu 24.04
Я проверил, просто запустил простую команду «uname -a» на удаленном узле Ubuntu 24.04 и получил следующую ошибку:
Код: Выделить всё
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'ansible.module_utils.six.moves' node01 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false,
"module_stderr": "Shared connection to node01 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1727773197.2698286-5555-256622891592982/AnsiballZ_command.py\", line 102, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1727773197.2698286-5555-256622891592982/AnsiballZ_command.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1727773197.2698286-5555-256622891592982/AnsiballZ_command.py\", line 37, in invoke_module\r\n from ansible.module_utils import basic\r\n File \"/tmp/ansible_ansible.legacy.command_payload_11u5rz__/ansible_ansible.legacy.command_payload.zip/ansible/module_utils/basic.py\", line 176, in \r\nModuleNotFoundError: No module named 'ansible.module_utils.six.moves'\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1 } Failed: AnsibleError: ERROR: Ansible execution returned with non zero code. Execution failed: 1194949 in project Systems: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [node01: AnsibleError: ERROR: Ansible execution returned with non zero code. + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, Node failures: {node01=[AnsibleError: ERROR: Ansible execution returned with non zero code. + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, status: failed]
На сервере node01 работает Python 3.12.3
п>
Подробнее здесь: https://stackoverflow.com/questions/790 ... untu-24-04