Fix some ansible-lint complaints.
This commit is contained in:
parent
c7030c9245
commit
2cf34e8e55
64 changed files with 357 additions and 297 deletions
|
@ -1,7 +1,7 @@
|
|||
- name: install squid package
|
||||
apt:
|
||||
name: squid
|
||||
state: latest
|
||||
state: latest # noqa package-latest
|
||||
|
||||
- name: configure squid extra lines
|
||||
lineinfile:
|
||||
|
@ -9,11 +9,16 @@
|
|||
line: "{{ item.line }}"
|
||||
insertafter: "{{ item.insertafter }}"
|
||||
with_items:
|
||||
- { line: "http_access allow localnet", insertafter: "#http_access allow localnet" }
|
||||
- { line: "http_port 3129 intercept", insertafter: "http_port 3128" }
|
||||
- { line: "maximum_object_size_in_memory 10240 KB", insertafter: "# maximum_object_size_in_memory" }
|
||||
- { line: "maximum_object_size 512 MB", insertafter: "# maximum_object_size" }
|
||||
- { line: "cache_dir aufs /var/spool/squid 20000 16 256", insertafter: "#cache_dir ufs /var/spool/squid" }
|
||||
- line: "http_access allow localnet"
|
||||
insertafter: "#http_access allow localnet"
|
||||
- line: "http_port 3129 intercept"
|
||||
insertafter: "http_port 3128"
|
||||
- line: "maximum_object_size_in_memory 10240 KB"
|
||||
insertafter: "# maximum_object_size_in_memory"
|
||||
- line: "maximum_object_size 512 MB"
|
||||
insertafter: "# maximum_object_size"
|
||||
- line: "cache_dir aufs /var/spool/squid 20000 16 256"
|
||||
insertafter: "#cache_dir ufs /var/spool/squid"
|
||||
notify: "restart squid"
|
||||
|
||||
- name: configure squid store IDs
|
||||
|
@ -29,6 +34,7 @@
|
|||
copy:
|
||||
src: store_id_regex.conf
|
||||
dest: /etc/squid/store_id_regex.conf
|
||||
mode: 0644
|
||||
notify: "restart squid"
|
||||
|
||||
- name: configure squid as package cache
|
||||
|
@ -53,5 +59,5 @@
|
|||
- name: redirect www traffic in shorewall
|
||||
lineinfile:
|
||||
dest: /etc/shorewall/rules
|
||||
line: "REDIRECT loc 3129 tcp www"
|
||||
line: "REDIRECT loc 3129 tcp www"
|
||||
notify: "restart shorewall"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue