Forum Discussion
Jae_Hong_Kim_32
Nimbostratus
May 24, 2017skip certificate validation
In the code below, we had the certificate validation get skipped by the following code in the yaml validate_certs: no
-
hosts: 127.0.0.1
tasks:
- name: Check that you can connect (GET) to a page and it returns a status 200 uri: url: https://192.168.199.241/mgmt/tm/asm/policies method: GET user: admin password: admin return_content: yes validate_certs: no register: webpage
...
How do I get the equivalent in the F5 SDK
from import BigIP
bigip = BigIP("192.168.199.241", "admin", "admin")
- Jae_Hong_Kim_32
Nimbostratus
-
hosts: 127.0.0.1
tasks:
- name: Check that you can connect (GET) to a page and it returns a status 200 uri: url: https://192.168.199.241/mgmt/tm/asm/policies method: GET user: admin password: admin return_content: yes validate_certs: no register: webpage
-
hosts: 127.0.0.1
tasks:
- Jae_Hong_Kim_32
Nimbostratus
This solved it
import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects