Start user-squid-proxy at login so that all programs without kerberos support have proxy access
This commit is contained in:
parent
f5f3d9557d
commit
352a897d88
4 changed files with 11 additions and 3 deletions
|
@ -5,6 +5,7 @@ Description=Run squid in usermode using user kerberos ticket
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/bin/startusersquid.sh
|
ExecStart=/usr/local/bin/startusersquid.sh
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
#[Install]
|
[Install]
|
||||||
#WantedBy=default.target
|
WantedBy=xdg-desktop-autostart.target
|
||||||
|
|
|
@ -159,7 +159,6 @@
|
||||||
src: startusersquid.sh.j2
|
src: startusersquid.sh.j2
|
||||||
dest: /usr/local/bin/startusersquid.sh
|
dest: /usr/local/bin/startusersquid.sh
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
notify: daemon reload
|
|
||||||
|
|
||||||
- name: Provide usersquid service
|
- name: Provide usersquid service
|
||||||
copy:
|
copy:
|
||||||
|
@ -167,6 +166,12 @@
|
||||||
dest: /etc/systemd/user/usersquid.service
|
dest: /etc/systemd/user/usersquid.service
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Enable usersquid service
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: usersquid.service
|
||||||
|
scope: global
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- name: Deploy sudo configurations
|
- name: Deploy sudo configurations
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
|
|
|
@ -8,4 +8,5 @@ cache_log /dev/null
|
||||||
logfile_rotate 0
|
logfile_rotate 0
|
||||||
pid_filename none
|
pid_filename none
|
||||||
http_port 192.168.122.1:3128
|
http_port 192.168.122.1:3128
|
||||||
|
http_port 127.0.0.1:3128
|
||||||
http_access allow all
|
http_access allow all
|
||||||
|
|
|
@ -8,4 +8,5 @@ cache_log /dev/null
|
||||||
logfile_rotate 0
|
logfile_rotate 0
|
||||||
pid_filename none
|
pid_filename none
|
||||||
http_port 192.168.122.1:3128
|
http_port 192.168.122.1:3128
|
||||||
|
http_port 127.0.0.1:3128
|
||||||
http_access allow all
|
http_access allow all
|
||||||
|
|
Loading…
Add table
Reference in a new issue