From 21a2ec4e505b2deaa1b69771517d1dabca22198b Mon Sep 17 00:00:00 2001
From: Matevz Erzen <matevz.erzen@xlab.si>
Date: Tue, 19 Oct 2021 16:21:33 +0200
Subject: [PATCH] Added git clone wazuh make command

---
 Makefile  | 6 +++++-
 README.md | 4 ++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 00aba1f..b1d2332 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,11 @@ include $(ENV_DIR)/$(ENVIRONMENT).mk
 ANSIBLE_ARGS = -i $(ENV_DIR)/inventory.txt \
 							 -e ansible_dir=$(ANSIBLE_DIR) \
 							 -e environment_dir=$(ENV_DIR)
-							 
+
+clone-wazuh:
+	-git clone https://github.com/wazuh/wazuh-ansible.git > /dev/null 2>&1
+	cd wazuh-ansible && git checkout tags/v4.1.5
+
 reprovision:
 	@ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook $(ANSIBLE_ARGS)  $(ANSIBLE_DIR)/provision-reset.yml
 
diff --git a/README.md b/README.md
index b57867d..95981f7 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,10 @@ In addition to Wazuh, ClamAV is also installed to agent machines (for testing pu
 
 First, checkout Wazuh's tag `v4.1.5` into the current directory:
 
+```
+$ make clone-wazuh
+```
+or
 ```
 $ git clone https://github.com/wazuh/wazuh-ansible.git
 $ git checkout tags/v4.1.5
-- 
GitLab