diff --git a/Ansible/files/.gitkeep b/Ansible/files/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Ansible/inventory.yml b/Ansible/inventory.yml index e8c3a36e4d0a977d140dd65f372c8ce3d21bd23c..aefd44884e3c3b570c709f9bff31c2cc2ed34b97 100644 --- a/Ansible/inventory.yml +++ b/Ansible/inventory.yml @@ -4,11 +4,14 @@ all: hostname: "megbasztuk" ansible_host: 192.168.255.140 ansible_user: arcter - + manager: + ansible_host: security.manager.arcter + ansible_user: arcter children: Security-req: hosts: megbasztuk: {} VMS: children: - security: {} \ No newline at end of file + Security-req: {} + manager: {} diff --git a/Ansible/tasks/Security/manager.yml b/Ansible/tasks/Security/manager.yml new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Ansible/tasks/Security/wazuh.yml b/Ansible/tasks/Security/wazuh.yml index c7890f429aca7edf0ba31d3a532f4932281d2d82..bca440c1c44b77fe31dc808315b9f44b892b81eb 100644 --- a/Ansible/tasks/Security/wazuh.yml +++ b/Ansible/tasks/Security/wazuh.yml @@ -19,7 +19,7 @@ - wazuh-agent - name: Config Wazuh Agent - shell: "agent-auth -m 192.168.255.247" + shell: "agent-auth -m {{ manager.ansible_host }}" - name: Enable Wazuh agent systemd: