commit 5f7ba7a51d88f8160f9ec2305de95d5e96278f28
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Aug 23 17:12:40 2017 +0200
Add squid playbook
playbooks/groups/squid.xml | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/playbooks/groups/squid.xml b/playbooks/groups/squid.xml
new file mode 100644
index 0000000..3b8d505
--- /dev/null
+++ b/playbooks/groups/squid.xml
@@ -0,0 +1,35 @@
+# create a new squid server
+
+- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml
myhosts=squid:squid-stg"
+
+- name: make the box be real
+ hosts: squid-stg:squid
+ user: root
+ gather_facts: True
+
+ vars_files:
+ - /srv/web/infra/ansible/vars/global.yml
+ - "/srv/private/ansible/vars.yml"
+ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
+
+ roles:
+ - base
+ - hosts
+ - rkhunter
+ - nagios/client
+ - collectd/base
+ - sudo
+ - rsyncd
+ - { role: openvpn/client,
+ when: env != "staging" }
+ - fas_client
+ - squid
+
+ tasks:
+ - include: "{{ tasks }}/yumrepos.yml"
+ - include: "{{ tasks }}/motd.yml"
+
+ handlers:
+ - include: "{{ handlers }}/restart_services.yml"
+
+
Show replies by date