We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ba961 commit f12340fCopy full SHA for f12340f
etc/kayobe/ansible/wazuh-manager.yml
@@ -41,7 +41,9 @@
41
dest: "/var/ossec/etc/shared/default/"
42
owner: wazuh
43
group: wazuh
44
- when: custom_sca_policies.files | length > 0
+ when:
45
+ - custom_sca_policies_folder.stat.exists
46
+ - custom_sca_policies.files | length > 0
47
48
- name: Add custom policy definition(s) to the shared Agent config
49
blockinfile:
@@ -61,7 +63,9 @@
61
63
</policies>
62
64
</sca>
65
{% endfilter %}
66
67
68
69
notify:
70
- Restart wazuh
71
0 commit comments