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:
|
package:
|
||||||
name:
|
name:
|
||||||
- "{{ proxy }}"
|
- "{{ proxy }}"
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Bigger hammer for Ubuntu
|
- name: 'Bigger hammer for Ubuntu, run: /etc/init.d/squid stop'
|
||||||
command: /etc/init.d/squid stop
|
command: /etc/init.d/squid stop
|
||||||
when: is_ubuntu
|
when: is_ubuntu
|
||||||
|
|
||||||
|
@ -17,13 +17,13 @@
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not installing
|
when: not installing
|
||||||
|
|
||||||
- name: Create the Squid user
|
- name: 'Create the Squid user: {{ proxy_user }}'
|
||||||
user:
|
user:
|
||||||
name: "{{ proxy_user }}"
|
name: "{{ proxy_user }}"
|
||||||
createhome: False
|
createhome: False
|
||||||
shell: /bin/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:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
group: 'root'
|
group: 'root'
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Create Squid cache directory
|
- name: Create Squid directory /library/cache
|
||||||
file:
|
file:
|
||||||
path: /library/cache
|
path: /library/cache
|
||||||
owner: "{{ proxy_user }}"
|
owner: "{{ proxy_user }}"
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
mode: 0750
|
mode: 0750
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Create Squid log directory
|
- name: Create Squid directory /var/log/{{ proxy }}
|
||||||
file:
|
file:
|
||||||
path: "/var/log/{{ proxy }}"
|
path: "/var/log/{{ proxy }}"
|
||||||
owner: "{{ proxy_user }}"
|
owner: "{{ proxy_user }}"
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
when: dansguardian_install
|
when: dansguardian_install
|
||||||
|
|
||||||
# {{ proxy }} is normally "squid", but is "squid3" on raspbian-8 & debian-8
|
# {{ 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:
|
ini_file:
|
||||||
dest: "{{ iiab_ini_file }}"
|
dest: "{{ iiab_ini_file }}"
|
||||||
section: "{{ proxy }}"
|
section: "{{ proxy }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue