Update untar task to pass linting, added comment
This commit is contained in:
parent
e0038118e1
commit
571abfbb2c
@ -1,5 +1,4 @@
|
||||
---
|
||||
|
||||
- name: Install dependencies to build Wazuh packages
|
||||
package:
|
||||
name:
|
||||
@ -38,8 +37,10 @@
|
||||
path: "/tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||
state: directory
|
||||
|
||||
- name: Extract downloaded Wazuh branch from Github
|
||||
shell: "tar -xzvf /tmp/{{ wazuh_sources_installation.branch }}.tar.gz --strip 1 --directory /tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||
- name: Extract downloaded Wazuh branch from Github # Using shell instead of unarchive due to that module not working properlyh with --strip
|
||||
command: "tar -xzvf /tmp/{{ wazuh_sources_installation.branch }}.tar.gz --strip 1 --directory /tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||
register: wazuh_untar
|
||||
changed_when: wazuh_untar.rc ==0
|
||||
args:
|
||||
warn: false
|
||||
|
||||
|
||||
@ -38,8 +38,10 @@
|
||||
path: "/tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||
state: directory
|
||||
|
||||
- name: Extract downloaded Wazuh branch from Github
|
||||
shell: "tar -xzvf /tmp/{{ wazuh_sources_installation.branch }}.tar.gz --strip 1 --directory /tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||
- name: Extract downloaded Wazuh branch from Github # Using shell instead of unarchive due to that module not working properlyh with --strip
|
||||
command: "tar -xzvf /tmp/{{ wazuh_sources_installation.branch }}.tar.gz --strip 1 --directory /tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||
register: wazuh_untar
|
||||
changed_when: wazuh_untar.rc ==0
|
||||
args:
|
||||
warn: false
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user