Forum Discussion
JoshBarrow
Cirrus
Feb 14, 2022Ansible Error: An exception occurred during task execution
Wondering if anyone has seen this type of error using Ansible. Any information would be gladly appreciated! [ Spoiler ]
- 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.
After working with the people who actually use the application, I discovered they enter t3:// instead of http:// for the URL. I'm able to use the irule below to disable the HTTP profile.
when HTTP_REQUEST {
if { [HTTP::request] starts_with "t3" }
{ HTTP::disable }
}
- JoshBarrowFeb 25, 2022
Cirrus
going to be trying this out today! i'll keep this updated!