mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-22 10:04:26 +01:00
Ensure redhat-lsb-core is installed.
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
---
|
---
|
||||||
# Include variables and define needed variables.
|
|
||||||
- name: Include OS-specific variables.
|
- name: Include OS-specific variables.
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
when: ansible_os_family != "RedHat"
|
when: ansible_os_family != "RedHat"
|
||||||
|
|
||||||
# Include version-specific variables for RedHat.
|
- name: Ensure required dependency is installed (RedHat).
|
||||||
|
yum: name=redhat-lsb-core state=installed
|
||||||
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: Include OS-specific variables (RedHat).
|
- name: Include OS-specific variables (RedHat).
|
||||||
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
|
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
|
|||||||
rm -f /lib/systemd/system/basic.target.wants/*; \
|
rm -f /lib/systemd/system/basic.target.wants/*; \
|
||||||
rm -f /lib/systemd/system/anaconda.target.wants/*;
|
rm -f /lib/systemd/system/anaconda.target.wants/*;
|
||||||
|
|
||||||
RUN yum -y install redhat-lsb-core
|
|
||||||
|
|
||||||
# Install Ansible
|
# Install Ansible
|
||||||
RUN yum -y install epel-release
|
RUN yum -y install epel-release
|
||||||
RUN yum -y install git ansible sudo
|
RUN yum -y install git ansible sudo
|
||||||
|
|||||||
Reference in New Issue
Block a user