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
|
- name: Install dependencies to build Wazuh packages
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
@ -38,8 +37,10 @@
|
|||||||
path: "/tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
path: "/tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Extract downloaded Wazuh branch from Github
|
- name: Extract downloaded Wazuh branch from Github # Using shell instead of unarchive due to that module not working properlyh with --strip
|
||||||
shell: "tar -xzvf /tmp/{{ wazuh_sources_installation.branch }}.tar.gz --strip 1 --directory /tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
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:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
|
|
||||||
|
|||||||
@ -38,8 +38,10 @@
|
|||||||
path: "/tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
path: "/tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Extract downloaded Wazuh branch from Github
|
- name: Extract downloaded Wazuh branch from Github # Using shell instead of unarchive due to that module not working properlyh with --strip
|
||||||
shell: "tar -xzvf /tmp/{{ wazuh_sources_installation.branch }}.tar.gz --strip 1 --directory /tmp/wazuh-{{ wazuh_sources_installation.branch }}"
|
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:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user