Skip to content

Commit

Permalink
fix: Fix QACTL download of sources installation files #1723
Browse files Browse the repository at this point in the history
  • Loading branch information
jmv74211 committed Aug 18, 2021
1 parent 70467e2 commit da82a81
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ def __init__(self, wazuh_target, installation_files_path, wazuh_branch='master',
f"wazuh-{self.wazuh_branch}")

def download_installation_files(self, inventory_file_path, hosts='all'):
download_wazuh_sources_task = AnsibleTask({'name': 'Download Wazuh branch',
'shell': 'curl -Ls https:/wazuh/wazuh/archive/' +
f'{self.wazuh_branch}.tar.gz | tar zx'})
download_wazuh_sources_task = AnsibleTask({'name': f"Download Wazuh branch in {self.installation_files_path}",
'shell': f"cd {self.installation_files_path} && " +
'curl -Ls https:/wazuh/wazuh/archive/' +
f"{self.wazuh_branch}.tar.gz | tar zx && mv wazuh-*/* ."})
super().download_installation_files(inventory_file_path, [download_wazuh_sources_task], hosts)

return self.installation_files_path

0 comments on commit da82a81

Please sign in to comment.