Install dependencies task order update

This commit is contained in:
Gonzalo Acuña 2022-05-17 11:31:36 -03:00
parent 2424ee9ead
commit 6fff470117
No known key found for this signature in database
GPG Key ID: 646BA79A313A2270

View File

@ -1,5 +1,14 @@
--- ---
- name: "Install dependencies"
package:
name:
- unzip
- openssl
- tar
- curl
state: present
- name: Get latest wazuh release - name: Get latest wazuh release
shell: "curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/'| cut -c 2-" shell: "curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/'| cut -c 2-"
register: wazuh_latest_release register: wazuh_latest_release
@ -17,15 +26,6 @@
config_layer: '{{ wazuh_manager_config | default({}) }}' config_layer: '{{ wazuh_manager_config | default({}) }}'
when: wazuh_manager_config_overlay | bool when: wazuh_manager_config_overlay | bool
- name: "Install dependencies"
package:
name:
- unzip
- openssl
- tar
- curl
state: present
- include_tasks: "RedHat.yml" - include_tasks: "RedHat.yml"
when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int > 5) or (ansible_os_family == "RedHat" and ansible_distribution == "Amazon") when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int > 5) or (ansible_os_family == "RedHat" and ansible_distribution == "Amazon")