File tree Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 57
57
58
58
- name : Linux | Register Wazuh agent
59
59
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
61
61
62
62
- name : Linux | Start and enable Wazuh Agent service
63
63
block :
Original file line number Diff line number Diff line change 31
31
state : started
32
32
33
33
- 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'
35
35
36
36
- name : Windows | Update Wazuh agent configuration with Wazuh server IP address
37
37
win_lineinfile :
Original file line number Diff line number Diff line change 40
40
state : present
41
41
42
42
- 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"
44
44
45
45
- name : MacOS | Restart Wazuh agent service (MacOS 10.10+)
46
46
command : " launchctl kickstart -k system/com.wazuh.agent"
Original file line number Diff line number Diff line change 47
47
- https://{{ node }}:9200
48
48
{% endfor %}
49
49
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
-
57
50
- name : Dashboard-config | Remove comments from configuration file
58
51
replace :
59
52
path : " /etc/wazuh-dashboard/opensearch_dashboards.yml"
You can’t perform that action at this time.
0 commit comments