File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ # Variable configuration.
2
3
- name : Include OS-specific variables.
3
4
include_vars : " {{ ansible_os_family }}.yml"
4
5
when : ansible_os_family != "RedHat"
5
6
6
- - name : Ensure required dependency is installed (RedHat).
7
- yum : name=redhat-lsb-core state=installed
8
- when : ansible_os_family == "RedHat"
9
-
10
7
- name : Include OS-specific variables (RedHat).
11
8
include_vars : " {{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
12
9
when : ansible_os_family == "RedHat"
Original file line number Diff line number Diff line change 1
1
FROM centos:6
2
2
3
+ RUN yum -y install redhat-lsb-core
4
+
3
5
# Install Ansible
4
6
RUN yum -y update; yum clean all;
5
7
RUN yum -y install epel-release
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ 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
+
15
17
# Install Ansible
16
18
RUN yum -y install epel-release
17
19
RUN yum -y install git ansible sudo
You can’t perform that action at this time.
0 commit comments