| --- |
| # tasks file for apigee-opdk-setup-os-pip/ |
| |
| - name: Create pip config folder |
| file: |
| path: "{{ pip_conf_dir }}" |
| state: directory |
| when: pip_conf_dir is defined |
| |
| - name: Configure pip |
| template: |
| src: pip.conf.j2 |
| dest: "{{ pip_conf_dir }}/pip.conf" |
| when: pip_conf_dir is defined and pip_index_url is defined |
| |
| - name: Do not use proxy definitions |
| include: with_no_proxy.yml |
| when: http_proxy is not defined and https_proxy is not defined |
| |
| - name: Use proxy definitions |
| include: with_proxy.yml |
| when: http_proxy is defined and https_proxy is defined |
| |