Verify agent registration when is need it.

This commit is contained in:
Miguelangel Freitas 2017-08-21 19:09:17 -04:00
parent d6f865a296
commit 90dacea946

View File

@ -28,7 +28,10 @@
- name: Verify agent registration - name: Verify agent registration
shell: echo {{ agent_auth_output }} | grep "Valid key created" shell: echo {{ agent_auth_output }} | grep "Valid key created"
when: wazuh_register_client == true when:
- wazuh_register_client == true
- check_keys.stat.size == 0
- wazuh_manager_ip is not none
tags: tags:
- config - config