File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 99 - generate-certs
1010# Single node
1111- hosts : wazuh-manager
12+ become : yes
1213 become_user : root
1314 roles :
1415 - role : " {{ playbook_dir }}/roles/wazuh-ansible/wazuh-ansible/roles/wazuh/wazuh-indexer"
2223 path : " {{ local_custom_sca_policies_path }}"
2324 register : custom_sca_policies_folder
2425 delegate_to : localhost
26+ become : no
2527
2628 - name : Gather list of custom SCA policies
2729 find :
3032 delegate_to : localhost
3133 register : custom_sca_policies
3234 when : custom_sca_policies_folder.stat.exists
35+ become : no
3336
3437 - name : Copy custom SCA policy files to Wazuh manager
35- become : yes
3638 copy :
3739 # Note the trailing slash to copy directory contents
3840 src : " {{ local_custom_sca_policies_path }}/"
4244 when : custom_sca_policies.files | length > 0
4345
4446 - name : Add custom policy definition(s) to the shared Agent config
45- becomd : yes
4647 blockinfile :
4748 path : " /var/ossec/etc/shared/default/agent.conf"
4849 state : present
6566 - Restart wazuh
6667
6768 - name : Set http/s_proxy vars in ossec-init.conf for vulnerability detector
68- become : yes
6969 blockinfile :
7070 path : " /var/ossec/etc/ossec.conf"
7171 state : present
8484 path : " {{ local_custom_certs_path }}"
8585 register : custom_certificates_folder
8686 delegate_to : localhost
87+ become : no
8788
8889 - name : Copy the node & admin certificates to Wazuh dashboard
89- become : yes
9090 copy :
9191 src : " {{ local_custom_certs_path }}/{{ item }}"
9292 dest : /etc/wazuh-dashboard/certs/
101101 - Restart wazuh-dashboard
102102
103103 - name : Perform health check against filebeat
104- become : yes
105104 command : filebeat test output
106105 changed_when : false
107106 retries : 2
115114 - name : Restart wazuh-dashboard
116115 service :
117116 name : wazuh-dashboard
118- state : restarted
117+ state : restarted
You can’t perform that action at this time.
0 commit comments