Merge branch 'feature-lint-role-wazuh-agent'
This commit is contained in:
commit
4156a75395
@ -69,7 +69,7 @@
|
|||||||
register: agent_auth_output
|
register: agent_auth_output
|
||||||
notify: Windows | Restart Wazuh Agent
|
notify: Windows | Restart Wazuh Agent
|
||||||
when:
|
when:
|
||||||
- wazuh_agent_authd.enable == true
|
- wazuh_agent_authd.enable | bool
|
||||||
- not check_windows_key.stat.exists or check_windows_key.stat.size == 0
|
- not check_windows_key.stat.exists or check_windows_key.stat.size == 0
|
||||||
- wazuh_agent_authd.registration_address is not none
|
- wazuh_agent_authd.registration_address is not none
|
||||||
tags:
|
tags:
|
||||||
@ -81,7 +81,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Windows | Installing agent configuration (ossec.conf)
|
- name: Windows | Installing agent configuration (ossec.conf)
|
||||||
template:
|
template: # noqa 208
|
||||||
src: var-ossec-etc-ossec-agent.conf.j2
|
src: var-ossec-etc-ossec-agent.conf.j2
|
||||||
dest: "{{ wazuh_agent_win_path }}ossec.conf"
|
dest: "{{ wazuh_agent_win_path }}ossec.conf"
|
||||||
notify: Windows | Restart Wazuh Agent
|
notify: Windows | Restart Wazuh Agent
|
||||||
|
|||||||
@ -46,6 +46,7 @@
|
|||||||
- name: Create folder to extract Wazuh branch
|
- name: Create folder to extract Wazuh branch
|
||||||
file:
|
file:
|
||||||
path: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
path: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}"
|
||||||
|
mode: 0755
|
||||||
state: directory
|
state: directory
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user