Skip to content

Commit 91c3b9c

Browse files
committed
Ensure redhat-lsb-core is installed.
1 parent 71d6a0b commit 91c3b9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tasks/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
2-
# Include variables and define needed variables.
32
- name: Include OS-specific variables.
43
include_vars: "{{ ansible_os_family }}.yml"
54
when: ansible_os_family != "RedHat"
65

7-
# Include version-specific variables for RedHat.
6+
- name: Ensure required dependency is installed (RedHat).
7+
yum: name=redhat-lsb-core state=installed
8+
when: ansible_os_family == "RedHat"
9+
810
- name: Include OS-specific variables (RedHat).
911
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
1012
when: ansible_os_family == "RedHat"

tests/Dockerfile.centos-7

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ 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-
1715
# Install Ansible
1816
RUN yum -y install epel-release
1917
RUN yum -y install git ansible sudo

0 commit comments

Comments
 (0)