Skip to content

Add proxy to playbook - error in call intersight.com #23

@Maimbe

Description

@Maimbe

Hello, in my job i have proxy to connect internet, but dont have ssl intercept...

in example_claim.yml i add environment: variable

ansible_proxy = http://lalala.com:80/'
ansible_noproxy = 10.0.0.0/8

- name: Claim targets
  script: /usr/bin/env python claim_target.py -t ' [{{ stash_json }}]'
  register: result
  environment:
    http_proxy: "{{ ansible_proxy }}"
    https_proxy: "{{ ansible_proxy }}"
    no_proxy: "{{ ansible_noproxy }}"
  changed_when: '"true" in result.stdout'

it working fine... but i recive this error:

Exception: HTTPSConnectionPool(host='intersight.com', port=443): Max retries exceeded with url: /api/v1/resource/Groups?%24filter=Name+in+%28%27__omit_place_holder__b1208bd441ac629031fd9c714763730d807dd83e%27%29&%24select=Moid (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

and

/var/lib/awx/venv/ansible/lib64/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/var/lib/awx/venv/ansible/lib64/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/var/lib/awx/venv/ansible/lib64/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/var/lib/awx/venv/ansible/lib64/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/var/lib/awx/venv/ansible/lib64/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/var/lib/awx/venv/ansible/lib64/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/var/lib/awx/venv/ansible/lib64/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions