Skip to content

Commit 6528e1d

Browse files
committed
Fix Wazuh agent playbook w/o using custom policies
1 parent 58d6372 commit 6528e1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

etc/kayobe/ansible/wazuh-agent.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
owner: wazuh
2929
group: wazuh
3030
block: sca.remote_commands=1
31-
when: custom_sca_policies.files | length > 0
31+
when:
32+
- custom_sca_policies_folder.stat.exists
33+
- custom_sca_policies.files | length > 0
3234
notify:
3335
- Restart wazuh-agent
3436

0 commit comments

Comments
 (0)