summaryrefslogtreecommitdiffstats
path: root/ci/setup_proxy.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/setup_proxy.yaml')
-rw-r--r--ci/setup_proxy.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/ci/setup_proxy.yaml b/ci/setup_proxy.yaml
new file mode 100644
index 0000000..996218a
--- /dev/null
+++ b/ci/setup_proxy.yaml
@@ -0,0 +1,17 @@
+---
+- hosts: all
+ user: root
+
+ tasks:
+ - yum: name=squid
+ when: ansible_distribution == "CentOS"
+ - apt: name=squid
+ when: ansible_distribution == "Ubuntu"
+
+ - name: Transfer squid.conf
+ copy: src=squid.conf dest=/etc/squid/squid.conf mode=0640
+
+ - name: Bounce Squid
+ systemd:
+ name: squid
+ state: reloaded