Private
Public Access
2
0

First commit

This commit is contained in:
2026-01-07 14:27:55 +03:00
commit 0ffc9385c3
47 changed files with 11658 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
- name: Setup proxy client
ansible.builtin.include_tasks: "setup_proxy_client.yml"

View File

@@ -0,0 +1,24 @@
- name: Create 00proxy.conf file
ansible.builtin.template:
src: "templates/apt_proxy.conf"
dest: "/etc/apt/apt.conf.d/00proxy.conf"
mode: "644"
owner: "root"
group: "root"
- name: Add http_proxy and https_proxy variable to file /etc/environment
ansible.builtin.lineinfile:
path: "/etc/environment"
regexp: '^{{ item.key }}='
line: '{{ item.key }}="{{ item.value }}"'
create: true
mode: "644"
owner: "root"
group: "root"
with_items:
- key: 'http_proxy'
value: '{{ common_proxy_server }}'
- key: 'https_proxy'
value: '{{ common_proxy_server }}'
- key: 'no_proxy'
value: 'localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16'

View File

@@ -0,0 +1,2 @@
Acquire::http::Proxy "http://{{ common_proxy_server }}";
Acquire::https::Proxy "https://{{ common_proxy_server }}";