3KeyCompany / ansible-role-http-proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role: http_proxy

Configure Debian GNU/Linux networking to use HTTP_PROXY. It places configuration into /etc/profile.d/proxy.sh, which should be enough. Apt is explicitly configured via /etc/apt/apt.conf.d/80proxy to prevent restarting after creating /etc/profile.d/proxy.sh.

Requirements

The role is designed for Debian GNU/Linux.

Role Variables

proxy:
  http: http://192.168.0.1:3128/
  https: http://192.168.0.1:3128/
  ftp: http://192.168.0.1:3128/
  ftps: http://192.168.0.1:3128/
  dont_use_for:
    - host1.example.com
    - host2.example.com

Example Playbook

- hosts: localhost
  connection: local

  roles:
    - role: http_proxy

About

License:MIT License


Languages

Language:Shell 68.1%Language:Jinja 31.9%