From 55d3039519869731fb201022dbf25448ecfd5341 Mon Sep 17 00:00:00 2001 From: neonmei Date: Thu, 12 Nov 2020 11:37:10 -0300 Subject: [PATCH 1/3] roles/wazuh-agent: change comparison to literal bool --- roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml index e2bedc16..e5d8286e 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml @@ -69,7 +69,7 @@ register: agent_auth_output notify: Windows | Restart Wazuh Agent when: - - wazuh_agent_authd.enable == true + - wazuh_agent_authd.enable | bool - not check_windows_key.stat.exists or check_windows_key.stat.size == 0 - wazuh_agent_authd.registration_address is not none tags: From 7634f8cf9b100b0c592b0a45aba7d02ec4100f49 Mon Sep 17 00:00:00 2001 From: neonmei Date: Thu, 12 Nov 2020 11:37:55 -0300 Subject: [PATCH 2/3] roles/wazuh-agent: add noqa 208 exception for Windows template task --- roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml index e5d8286e..c778933c 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml @@ -81,7 +81,7 @@ state: directory - name: Windows | Installing agent configuration (ossec.conf) - template: + template: # noqa 208 src: var-ossec-etc-ossec-agent.conf.j2 dest: "{{ wazuh_agent_win_path }}ossec.conf" notify: Windows | Restart Wazuh Agent From 6f5f1106b342061cff1115e70d7fd351cecfd3e1 Mon Sep 17 00:00:00 2001 From: neonmei Date: Thu, 12 Nov 2020 11:38:19 -0300 Subject: [PATCH 3/3] roles/wazuh-agent: add missing mode for file task --- .../ansible-wazuh-agent/tasks/installation_from_sources.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/installation_from_sources.yml b/roles/wazuh/ansible-wazuh-agent/tasks/installation_from_sources.yml index 73b3e6ce..fbfecd5b 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/installation_from_sources.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/installation_from_sources.yml @@ -46,6 +46,7 @@ - name: Create folder to extract Wazuh branch file: path: "/tmp/wazuh-{{ wazuh_agent_sources_installation.branch }}" + mode: 0755 state: directory changed_when: false