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.
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
- JoshBarrowFeb 22, 2022Cirrus
It is running Python Version 3.8 and BIG IP Version 14.1.2.6.
Sanitized Playbook here
Spoiler- name: BIG-IP SETUPhosts: f5_labconnection: localgather_facts: falseignore_errors: truevars_files:- varsheet.ymltasks:# ------------------------ Setup Provider ------------------------- name: Setup providerset_fact:provider:server: "Server"user: "{{ansible_user}}"password:server_port: 443validate_certs: false# ------------------------ Create New Pool ------------------------- name: CREATE POOLf5networks.f5_modules.bigip_pool:provider: "{{ provider }}"name: "{{site_name}}"lb_method: "round-robin"monitors: "/Common/tcp"# ------------------------ Add Pool Members ------------------------- name: ADD POOL MEMBERSf5networks.f5_modules.bigip_pool_member:provider: "{{ provider }}"state: "present"address: "{{ item.host }}"name: "{{ item.name }}"port: "{{ site_port }}"pool: "{{site_name}}"with_items: "{{pool_members}}"# ------------------------ Create Virtual Server ------------------------- name: Add virtual serverf5networks.f5_modules.bigip_virtual_server:provider: "{{ provider }}"state: presentpartition: Commonname: "{{site_name}}"destination: "{{ virtual_ip }}"port: "443"pool: "{{site_name}}"snat: Automapprofiles:- name: httpcontext: all- name: "{{site_name}}"context: server-side- JRahmFeb 24, 2022Admin
anything in the github issue mkratochvil mentioned helpful to you?
- JoshBarrowFeb 25, 2022Cirrus
going to be trying this out today! i'll keep this updated!
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