Ubuntu support.
This commit is contained in:
parent
045b1eeafa
commit
87a8610dbf
|
@ -1,8 +1,8 @@
|
||||||
squid
|
squid
|
||||||
=========
|
=========
|
||||||
|
|
||||||
This role installs and configures the squid caching proxy, <http://www.squid-cache.org/>
|
This role installs and configures the squid caching proxy, <http://www.squid-cache.org/>.
|
||||||
|
This role is very basic. It does not handle authentication, SMP, or any special cases.
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
@ -13,4 +13,3 @@ Author Information
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
Andrea Dell'Amico, <andrea.dellamico@isti.cnr.it>
|
Andrea Dell'Amico, <andrea.dellamico@isti.cnr.it>
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@ galaxy_info:
|
||||||
- name: EL
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
- 7
|
- 7
|
||||||
|
- name: Ubuntu
|
||||||
|
versions:
|
||||||
|
- bionic
|
||||||
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- squid
|
- squid
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Install the squid package
|
- name: Install the squid package on RH based systems
|
||||||
yum: pkg=squid state=present
|
yum: pkg=squid state=present
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
@ -8,6 +8,15 @@
|
||||||
- squid_install | bool
|
- squid_install | bool
|
||||||
tags: [ 'squid', 'proxy' ]
|
tags: [ 'squid', 'proxy' ]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: Install the squid package on Debian based systems
|
||||||
|
apt: pkg=squid state=present cache_valid_time=3600
|
||||||
|
|
||||||
|
when:
|
||||||
|
- ansible_distribution_file_variety == "Debian"
|
||||||
|
- squid_install | bool
|
||||||
|
tags: [ 'squid', 'proxy' ]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install the squid configuration file
|
- name: Install the squid configuration file
|
||||||
template: src=squid.conf.j2 dest=/etc/squid/squid.conf
|
template: src=squid.conf.j2 dest=/etc/squid/squid.conf
|
||||||
|
|
Loading…
Reference in New Issue