Forum Discussion
Ansible Error: An exception occurred during task execution
- Feb 24, 2022
Problem solved! At least for us. In short, the module in our playbook needs to be executed on the Big-IP itself which uses Python 2.7 and causes the "split()" error. In most cases this can be resolved with "connection: local" or "delegate_to: localhost", as it is with all the F5 Ansible modules. In our case the solution was a bit different, you can check the GitHub issue for explanation.
Hi all,
just ran into the same issue, same error, after we switched to ansible 2.12.2 from Ansible 2.10.15
Ansible version: 2.12.2
Big-IP version: 15.1.3
Ansible module: f5networks.f5_modules.bigip_lx_package
The ansible task:
- name: Install AS3 package.
f5networks.f5_modules.bigip_lx_package:
provider: "{{ localprovider }}"
package: "/var/config/rest/downloads/f5-appsvcs-{{ target_version }}-{{ target_release }}.noarch.rpm"
retain_package_file: yes
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: split() takes no keyword arguments
fatal: [ap-ae-1-lb114a-02]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 10.246.160.182 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1645427475.1417716-41707-278220905573988/AnsiballZ_bigip_lx_package.py\", line 107, in <module>\r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1645427475.1417716-41707-278220905573988/AnsiballZ_bigip_lx_package.py\", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1645427475.1417716-41707-278220905573988/AnsiballZ_bigip_lx_package.py\", line 48, in invoke_module\r\n run_name='__main__', alter_sys=True)\r\n File \"/usr/lib/python2.7/runpy.py\", line 176, in run_module\r\n fname, loader, pkg_name)\r\n File \"/usr/lib/python2.7/runpy.py\", line 82, in _run_module_code\r\n mod_name, mod_fname, mod_loader, pkg_name)\r\n File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\r\n exec code in run_globals\r\n File \"/tmp/ansible_f5networks.f5_modules.bigip_lx_package_payload_4cel_G/ansible_f5networks.f5_modules.bigip_lx_package_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_lx_package.py\", line 505, in <module>\r\n File \"/tmp/ansible_f5networks.f5_modules.bigip_lx_package_payload_4cel_G/ansible_f5networks.f5_modules.bigip_lx_package_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_lx_package.py\", line 498, in main\r\n File \"/tmp/ansible_f5networks.f5_modules.bigip_lx_package_payload_4cel_G/ansible_f5networks.f5_modules.bigip_lx_package_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_lx_package.py\", line 226, in exec_module\r\n File \"/tmp/ansible_f5networks.f5_modules.bigip_lx_package_payload_4cel_G/ansible_f5networks.f5_modules.bigip_lx_package_payload.zip/ansible_collections/f5networks/f5_modules/plugins/module_utils/teem.py\", line 134, in send_teem\r\n File \"/tmp/ansible_f5networks.f5_modules.bigip_lx_package_payload_4cel_G/ansible_f5networks.f5_modules.bigip_lx_package_payload.zip/ansible_collections/f5networks/f5_modules/plugins/module_utils/teem.py\", line 70, in send\r\n File \"/tmp/ansible_f5networks.f5_modules.bigip_lx_package_payload_4cel_G/ansible_f5networks.f5_modules.bigip_lx_package_payload.zip/ansible_collections/f5networks/f5_modules/plugins/module_utils/teem.py\", line 45, in prepare_request\r\n File \"/tmp/ansible_f5networks.f5_modules.bigip_lx_package_payload_4cel_G/ansible_f5networks.f5_modules.bigip_lx_package_payload.zip/ansible_collections/f5networks/f5_modules/plugins/module_utils/teem.py\", line 92, in build_telemetry\r\nTypeError: split() takes no keyword arguments\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execut
ion. To see the full traceback, use -vvv. The error was: TypeError: split() takes no keyword arguments
When I switch back to Ansible 2.10.15, everything works fine.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com