Merge pull request #294 from wazuh/bugfix-293-node-amazon-linux
Enable node repo for Amazon Linux
This commit is contained in:
commit
2182f8540c
@ -26,17 +26,9 @@
|
|||||||
args:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
|
creates: /etc/yum.repos.d/nodesource-el7.repo
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA"
|
- ansible_distribution|lower == "amazon"
|
||||||
|
|
||||||
- name: AmazonLinux | Install Nodejs repo
|
|
||||||
yum:
|
|
||||||
name: nodejs
|
|
||||||
state: present
|
|
||||||
register: wazuh_manager_amz_node_packages_installed
|
|
||||||
until: wazuh_manager_amz_node_packages_installed is succeeded
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA"
|
|
||||||
|
|
||||||
- name: RedHat/CentOS 5 | Install Wazuh repo
|
- name: RedHat/CentOS 5 | Install Wazuh repo
|
||||||
yum_repository:
|
yum_repository:
|
||||||
@ -47,7 +39,7 @@
|
|||||||
gpgcheck: true
|
gpgcheck: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
- (ansible_facts['os_family']|lower == 'redhat')
|
- (ansible_os_family|lower == 'redhat') and (ansible_distribution|lower != 'amazon')
|
||||||
- (ansible_distribution_major_version|int <= 5)
|
- (ansible_distribution_major_version|int <= 5)
|
||||||
register: repo_v5_manager_installed
|
register: repo_v5_manager_installed
|
||||||
|
|
||||||
@ -60,7 +52,7 @@
|
|||||||
gpgcheck: true
|
gpgcheck: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
- repo_v5_manager_installed.skipped
|
- repo_v5_manager_installed|skipped
|
||||||
|
|
||||||
- name: RedHat/CentOS/Fedora | Install openscap
|
- name: RedHat/CentOS/Fedora | Install openscap
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user