Skip to content

Commit 3acd799

Browse files
committed
Install redhat-lsb-core prior to test.
1 parent 91c3b9c commit 3acd799

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tasks/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
---
2+
# Variable configuration.
23
- name: Include OS-specific variables.
34
include_vars: "{{ ansible_os_family }}.yml"
45
when: ansible_os_family != "RedHat"
56

6-
- name: Ensure required dependency is installed (RedHat).
7-
yum: name=redhat-lsb-core state=installed
8-
when: ansible_os_family == "RedHat"
9-
107
- name: Include OS-specific variables (RedHat).
118
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
129
when: ansible_os_family == "RedHat"

tests/Dockerfile.centos-6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM centos:6
22

3+
RUN yum -y install redhat-lsb-core
4+
35
# Install Ansible
46
RUN yum -y update; yum clean all;
57
RUN yum -y install epel-release

tests/Dockerfile.centos-7

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1212
rm -f /lib/systemd/system/basic.target.wants/*; \
1313
rm -f /lib/systemd/system/anaconda.target.wants/*;
1414

15+
RUN yum -y install redhat-lsb-core
16+
1517
# Install Ansible
1618
RUN yum -y install epel-release
1719
RUN yum -y install git ansible sudo

0 commit comments

Comments
 (0)