From 70f89f300beb67939107396e6105d5feb577ae4f Mon Sep 17 00:00:00 2001
From: root <root@srv3.soctools.grena.ge>
Date: Mon, 1 Aug 2022 11:09:54 +0400
Subject: [PATCH] replace tag: update-haproxy-config with
 update-haproxy-config-acl

---
 doc/HOWTOS.md                | 2 +-
 roles/haproxy/tasks/main.yml | 4 ++--
 soctools.yml                 | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/HOWTOS.md b/doc/HOWTOS.md
index 29e1fe9..bf11cae 100644
--- a/doc/HOWTOS.md
+++ b/doc/HOWTOS.md
@@ -33,7 +33,7 @@ Update configuration files in docker containers using Ansible
   `ansible-playbook -i inventories soctools.yml -t update-thehive-config`  
   `ansible-playbook -i inventories soctools.yml -t update-cortex-config`  
   `ansible-playbook -i inventories soctools.yml -t update-cassandra-config`  
-  `ansible-playbook -i inventories soctools.yml -t update-haproxy-config`  
+  `ansible-playbook -i inventories soctools.yml -t update-haproxy-config-acl`  
   `ansible-playbook -i inventories soctools.yml -t update-filebeat-config`  
   `ansible-playbook -i inventories soctools.yml -t update-nifi-config`  
   `ansible-playbook -i inventories soctools.yml -t update-odfees-config`  
diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml
index 22c71d3..3004ad4 100644
--- a/roles/haproxy/tasks/main.yml
+++ b/roles/haproxy/tasks/main.yml
@@ -15,10 +15,10 @@
 - include: update-config.yml
   tags:
    - update-config
-   - update-haproxy-config
+   - update-haproxy-config-acl
 - include: restart.yml
   tags:
    - restart
    - restart-haproxy
    - update-config
-   - update-haproxy-config
+   - update-haproxy-config-acl
diff --git a/soctools.yml b/soctools.yml
index 2dd3142..4636ad1 100644
--- a/soctools.yml
+++ b/soctools.yml
@@ -18,7 +18,7 @@
 
 - name: Update soctools cluster configs
   import_playbook: update-config-soctools.yml
-  when: "'update-config' in ansible_run_tags or 'update-keycloak-config' in ansible_run_tags or 'update-thehive-config' in ansible_run_tags or 'update-cortex-config' in ansible_run_tags or 'update-haproxy-config' in ansible_run_tags or 'update-cassandra-config' in ansible_run_tags or 'update-filebeat-config' in ansible_run_tags or 'update-misp-config' in ansible_run_tags or 'update-mysql-config' in ansible_run_tags or 'update-nifi-config' in ansible_run_tags or 'update-odfees-config' in ansible_run_tags or 'update-odfekibana-config' in ansible_run_tags"
+  when: "'update-config' in ansible_run_tags or 'update-keycloak-config' in ansible_run_tags or 'update-thehive-config' in ansible_run_tags or 'update-cortex-config' in ansible_run_tags or 'update-haproxy-config-acl' in ansible_run_tags or 'update-cassandra-config' in ansible_run_tags or 'update-filebeat-config' in ansible_run_tags or 'update-misp-config' in ansible_run_tags or 'update-mysql-config' in ansible_run_tags or 'update-nifi-config' in ansible_run_tags or 'update-odfees-config' in ansible_run_tags or 'update-odfekibana-config' in ansible_run_tags"
 
 - name: restart soctools cluster servics
   import_playbook: restart-soctools.yml
-- 
GitLab