14-Feb-2022 09:51
Wondering if anyone has seen this type of error using Ansible.
Any information would be gladly appreciated!
Solved! Go to Solution.
24-Feb-2022 12:06 - edited 24-Feb-2022 12:08
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.
17-Feb-2022 15:38 - edited 17-Feb-2022 15:47
nice use of the spoiler option! For those that are better versed with ansible errors than I, do you have the (sanitized) playbook you're running that you can share, what version of BIG-IP and what version of python you're using? Thanks...Jason
22-Feb-2022 08:51
It is running Python Version 3.8 and BIG IP Version 14.1.2.6.
Sanitized Playbook here
24-Feb-2022 13:00
anything in the github issue @mkratochvil mentioned helpful to you?
25-Feb-2022 10:37
going to be trying this out today! i'll keep this updated!
20-Feb-2022 23:33
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.
21-Feb-2022 00:01
I'm trying to reply to this topic for 3rd time now, for some reason my replies disappear. Giving it onle last shot.
Just hit the same issue, as3 installation module fails wht the same error.
I reported it in the collection repository:
Module failure on ansible-core · Issue #2176 · F5Networks/f5-ansible (github.com)
You can check there for details.
22-Feb-2022 08:36
It made it! Thanks for adding the link to the github issue, that will be helpful to others hitting this problem.
24-Feb-2022 12:06 - edited 24-Feb-2022 12:08
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.
28-Feb-2022 08:14
Awesome Boss! Yea I was checking your post on there. I'll try that out!
28-Feb-2022 08:43
Thank you so much!! the no_f5_teem: True in the provider also fixed it for me!
I really appreciate it!
14-Apr-2023 15:27
Glad you were able to find a solution! Just popping in to share a few popular Ansible-related DevCentral articles in case anyone finds them helpful: