Browse Source

Configuration du proxy http globale

master v0.4
Mablr 1 year ago
parent
commit
df200a7389
Signed by: mablr GPG Key ID: 7568670EF499017A
2 changed files with 3 additions and 4 deletions
  1. +1
    -1
      tasks/config.yml
  2. +2
    -3
      templates/http_proxy.j2

+ 1
- 1
tasks/config.yml View File

@ -8,7 +8,7 @@
- name: config | http proxy configuration
template:
src: "{{ http_template }}"
dest: /root/.wgetrc
dest: /etc/profile.d/proxy.sh
tags:
- http-proxy


+ 2
- 3
templates/http_proxy.j2 View File

@ -1,5 +1,4 @@
{% if proxy_ip is defined and http_proxy_port is defined %}
http_proxy = http://[{{proxy_ip}}]:{{http_proxy_port}}/
https_proxy = http://[{{proxy_ip}}]:{{http_proxy_port}}/
use_proxy = on
export http_proxy=http://[{{proxy_ip}}]:{{http_proxy_port}}/
export https_proxy=http://[{{proxy_ip}}]:{{http_proxy_port}}/
{% endif %}

Loading…
Cancel
Save