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
|
||||
ExecStart=/usr/local/bin/startusersquid.sh
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
#[Install]
|
||||
#WantedBy=default.target
|
||||
[Install]
|
||||
WantedBy=xdg-desktop-autostart.target
|
||||
|
|
|
@ -159,7 +159,6 @@
|
|||
src: startusersquid.sh.j2
|
||||
dest: /usr/local/bin/startusersquid.sh
|
||||
mode: '0755'
|
||||
notify: daemon reload
|
||||
|
||||
- name: Provide usersquid service
|
||||
copy:
|
||||
|
@ -167,6 +166,12 @@
|
|||
dest: /etc/systemd/user/usersquid.service
|
||||
mode: 0644
|
||||
|
||||
- name: Enable usersquid service
|
||||
ansible.builtin.systemd:
|
||||
name: usersquid.service
|
||||
scope: global
|
||||
enabled: true
|
||||
|
||||
- name: Deploy sudo configurations
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
|
|
|
@ -8,4 +8,5 @@ cache_log /dev/null
|
|||
logfile_rotate 0
|
||||
pid_filename none
|
||||
http_port 192.168.122.1:3128
|
||||
http_port 127.0.0.1:3128
|
||||
http_access allow all
|
||||
|
|
|
@ -8,4 +8,5 @@ cache_log /dev/null
|
|||
logfile_rotate 0
|
||||
pid_filename none
|
||||
http_port 192.168.122.1:3128
|
||||
http_port 127.0.0.1:3128
|
||||
http_access allow all
|
||||
|
|
Loading…
Add table
Reference in a new issue