Configure proxy on repository
none
See variables for more details.
With default variables, this role dont change anything on the system. You need to set the config variables like in the exemple in order to start configuration.
---
- hosts: system_repo_proxy
become: true
become_method: sudo
gather_facts: true
roles:
- role: ansible-system_repo_proxy
vars:
yum_proxy: "http://squid.exemple.com:3128"
apt_proxy_file: "/etc/apt/apt.conf.d/01proxy"
apt_proxy: "https://exemple.com:3142"
apt_proxy_skip_host: "{{ apt_proxy | urlsplit('hostname') }}"
apt_proxy_remove:
- /etc/apt/apt.conf.d/99proxy
This project is licensed under Apache License. See LICENSE for more details.