Update untar task to pass linting, added comment

This commit is contained in:
Jose M 2019-11-20 19:00:53 +01:00
parent e0038118e1
commit 571abfbb2c
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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