1
0
Fork 0
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:
A Holt 2018-10-30 20:51:21 -04:00 committed by GitHub
parent eab3b0ef30
commit ca15a70c00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}"