commit b8ddacd6086253792585d9a7cc570743ccb1ac74
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Nov 19 17:21:05 2024 +0100
Update squid playbook
playbooks/groups/squid.xml | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/playbooks/groups/squid.xml b/playbooks/groups/squid.xml
index 0f6f9e2..47c5647 100644
--- a/playbooks/groups/squid.xml
+++ b/playbooks/groups/squid.xml
@@ -1,13 +1,17 @@
# create a new squid server
- name: make the box be real
- hosts: squid-stg:squid
+ hosts: 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
+
+ pre_tasks:
+ - import_tasks: "{{ tasks_path }}/yumrepos.yml"
roles:
- base
@@ -19,14 +23,11 @@
- rsyncd
- { role: openvpn/client,
when: datacenter != "online" }
- - fas_client
- squid
tasks:
- - include: "{{ tasks_path }}/yumrepos.yml"
- - include: "{{ tasks_path }}/motd.yml"
+ - import_tasks: "{{ tasks_path }}/motd.yml"
+ when: not inventory_hostname.startswith('bkernel')
handlers:
- - include: "{{ handlers_path }}/restart_services.yml"
-
-
+ - import_tasks: "{{ handlers_path }}/restart_services.yml"