mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update squid.yml
This commit is contained in:
parent
eab3b0ef30
commit
ca15a70c00
1 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
- name: Install Squid packages {{ proxy }} and cadaver
|
||||
- name: 'Install packages: {{ proxy }} and cadaver'
|
||||
package:
|
||||
name:
|
||||
- "{{ proxy }}"
|
||||
|
@ -7,7 +7,7 @@
|
|||
tags:
|
||||
- download
|
||||
|
||||
- name: Bigger hammer for Ubuntu
|
||||
- name: 'Bigger hammer for Ubuntu, run: /etc/init.d/squid stop'
|
||||
command: /etc/init.d/squid stop
|
||||
when: is_ubuntu
|
||||
|
||||
|
@ -17,13 +17,13 @@
|
|||
state: stopped
|
||||
when: not installing
|
||||
|
||||
- name: Create the Squid user
|
||||
- name: 'Create the Squid user: {{ proxy_user }}'
|
||||
user:
|
||||
name: "{{ proxy_user }}"
|
||||
createhome: False
|
||||
shell: /bin/false
|
||||
|
||||
- name: Copy init script and config file
|
||||
- name: 'Install from template: /usr/bin/iiab-httpcache, /etc/sysconfig/squid, /etc/{{ proxy }}/sites.whitelist.txt and 3 .rules files'
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
|
@ -62,7 +62,7 @@
|
|||
group: 'root'
|
||||
mode: '0755'
|
||||
|
||||
- name: Create Squid cache directory
|
||||
- name: Create Squid directory /library/cache
|
||||
file:
|
||||
path: /library/cache
|
||||
owner: "{{ proxy_user }}"
|
||||
|
@ -70,7 +70,7 @@
|
|||
mode: 0750
|
||||
state: directory
|
||||
|
||||
- name: Create Squid log directory
|
||||
- name: Create Squid directory /var/log/{{ proxy }}
|
||||
file:
|
||||
path: "/var/log/{{ proxy }}"
|
||||
owner: "{{ proxy_user }}"
|
||||
|
@ -82,7 +82,7 @@
|
|||
when: dansguardian_install
|
||||
|
||||
# {{ proxy }} is normally "squid", but is "squid3" on raspbian-8 & debian-8
|
||||
- name: Add '{{ proxy }}' to list of services at {{ iiab_ini_file }}
|
||||
- name: Add '{{ proxy }}' variable values to {{ iiab_ini_file }}
|
||||
ini_file:
|
||||
dest: "{{ iiab_ini_file }}"
|
||||
section: "{{ proxy }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue