Skip to content

Commit dc7a34b

Browse files
authored
Merge pull request #812 from stackhpc/fix-wazuh-agent-custom-policies-again
Fix Wazuh agent playbook w/o using custom policies
2 parents 3703743 + 6528e1d commit dc7a34b

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)