File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- # Include variables and define needed variables.
3
2
- name : Include OS-specific variables.
4
3
include_vars : " {{ ansible_os_family }}.yml"
5
4
when : ansible_os_family != "RedHat"
6
5
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
+
8
10
- name : Include OS-specific variables (RedHat).
9
11
include_vars : " {{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
10
12
when : ansible_os_family == "RedHat"
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
12
12
rm -f /lib/systemd/system/basic.target.wants/*; \
13
13
rm -f /lib/systemd/system/anaconda.target.wants/*;
14
14
15
- RUN yum -y install redhat-lsb-core
16
-
17
15
# Install Ansible
18
16
RUN yum -y install epel-release
19
17
RUN yum -y install git ansible sudo
You can’t perform that action at this time.
0 commit comments