Scripts to allow Jenkins to run the SNAPS-OO tests.
[snaps.git] / ci / setup_proxy.yaml
diff --git a/ci/setup_proxy.yaml b/ci/setup_proxy.yaml
new file mode 100644 (file)
index 0000000..996218a
--- /dev/null
@@ -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