Skip to content

Commit 71d6a0b

Browse files
committed
Fix test build for CentOS 7.
1 parent 72d6da3 commit 71d6a0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Include version-specific variables for RedHat.
88
- name: Include OS-specific variables (RedHat).
9-
include_vars: "{{ ansible_os_family }}-{{ ansible_distribution_version|slice(1) }}.yml"
9+
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
1010
when: ansible_os_family == "RedHat"
1111

1212
- name: Define mysql_packages.

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)