proxy support #3
7
roles/custom/tasks/apt-proxies.yml
Normal file
7
roles/custom/tasks/apt-proxies.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Set apt proxies
|
||||
template:
|
||||
src: 95proxies
|
||||
dest: /etc/apt/apt.conf.d/95proxies
|
||||
force: yes
|
@ -10,3 +10,8 @@
|
||||
tags:
|
||||
- custom
|
||||
- bglug
|
||||
|
||||
- include: apt-proxies.yml
|
||||
tags:
|
||||
- custom
|
||||
|
2
roles/custom/templates/95proxies
Normal file
2
roles/custom/templates/95proxies
Normal file
@ -0,0 +1,2 @@
|
||||
Acquire::http::proxy "http://{{ ansible_local.domain.serverfqdn }}:3128/";
|
||||
Acquire::https::proxy "http://{{ ansible_local.domain.serverfqdn }}:3128/";
|
@ -8,6 +8,13 @@
|
||||
backup: yes
|
||||
register: cfg_glib_users
|
||||
|
||||
- name: Setting system proxy
|
||||
template:
|
||||
src: org.gnome.system.proxy.gschema.override
|
||||
dest: /usr/share/glib-2.0/schemas/org.gnome.system.proxy.gschema.override
|
||||
backup: yes
|
||||
register: cfg_glib_proxy
|
||||
|
||||
- name: Visualizing mounted drives on desktop
|
||||
copy:
|
||||
src: org.gnome.nautilus.desktop.gschema.override
|
||||
@ -24,4 +31,5 @@
|
||||
|
||||
- name: Recompiling glib2 schemas
|
||||
shell: glib-compile-schemas --strict /usr/share/glib-2.0/schemas/
|
||||
when: cfg_glib_users|changed or cfg_glib_mounted|changed or cfg_keyb_layout|changed
|
||||
sudo: yes
|
||||
when: cfg_glib_proxy|changed or cfg_glib_users|changed or cfg_glib_mounted|changed or cfg_keyb_layout|changed
|
||||
|
@ -0,0 +1,8 @@
|
||||
[org.gnome.system.proxy]
|
||||
mode='manual'
|
||||
[org.gnome.system.proxy.http]
|
||||
host='{{ ansible_local.domain.serverfqdn }}'
|
||||
port=3128
|
||||
[org.gnome.system.proxy.https]
|
||||
host='{{ ansible_local.domain.serverfqdn }}'
|
||||
port=3128
|
Loading…
x
Reference in New Issue
Block a user