Skip to content

Commit 52a6237

Browse files
committed
Update to latest 5.0.0 package changes
1 parent ff84f6e commit 52a6237

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

roles/wazuh-agent/tasks/Linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
- name: Linux | Register Wazuh agent
5959
shell: |
60-
/usr/share/wazuh-agent/bin/wazuh-agent --register-agent --user wazuh --password wazuh --url https://{{ wazuh_server_addresses[0] }}:55000 --verification-mode none
60+
/usr/share/wazuh-agent/bin/wazuh-agent --enroll-agent --user wazuh --password wazuh --url https://{{ wazuh_server_addresses[0] }}:55000 --verification-mode none
6161
6262
- name: Linux | Start and enable Wazuh Agent service
6363
block:

roles/wazuh-agent/tasks/Windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
state: started
3232

3333
- name: Windows | Register Wazuh agent
34-
win_command: '"C:\\Program Files\\wazuh-agent\\wazuh-agent.exe" --register-agent --user wazuh --password wazuh --url https://{{ wazuh_server_addresses[0] }}:55000 --verification-mode none'
34+
win_command: '"C:\\Program Files\\wazuh-agent\\wazuh-agent.exe" --enroll-agent --user wazuh --password wazuh --url https://{{ wazuh_server_addresses[0] }}:55000 --verification-mode none'
3535

3636
- name: Windows | Update Wazuh agent configuration with Wazuh server IP address
3737
win_lineinfile:

roles/wazuh-agent/tasks/macOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
state: present
4141

4242
- name: MacOS | Register Wazuh agent
43-
command: "/Library/Application\\ Support/Wazuh\\ agent.app/bin/wazuh-agent --register-agent --user wazuh --password wazuh --url https://{{ wazuh_server_addresses[0] }}:55000 --verification-mode none"
43+
command: "/Library/Application\\ Support/Wazuh\\ agent.app/bin/wazuh-agent --enroll-agent --user wazuh --password wazuh --url https://{{ wazuh_server_addresses[0] }}:55000 --verification-mode none"
4444

4545
- name: MacOS | Restart Wazuh agent service (MacOS 10.10+)
4646
command: "launchctl kickstart -k system/com.wazuh.agent"

roles/wazuh-dashboard/tasks/main.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@
4747
- https://{{ node }}:9200
4848
{% endfor %}
4949
50-
- name: Dashboard-config | Update Wazuh API URL
51-
replace:
52-
path: /etc/wazuh-dashboard/opensearch_dashboards.yml
53-
regexp: "url: 'https://localhost'"
54-
replace: "url: 'https://{{ wazuh_server_api_host }}'"
55-
become: yes
56-
5750
- name: Dashboard-config | Remove comments from configuration file
5851
replace:
5952
path: "/etc/wazuh-dashboard/opensearch_dashboards.yml"

0 commit comments

Comments
 (0)