Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RHEL7 mysql repo #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
- name: Add the OS specific variables
include_vars: "{{ ansible_os_family }}.yml"

- name: Install the mysql repositories in Redhat derivatives
yum: name={{ item }} state=installed
with_items: repos
when: ansible_os_family == 'RedHat'

- name: Install the mysql packages in Redhat derivatives
yum: name={{ item }} state=installed
Expand Down
4 changes: 4 additions & 0 deletions vars/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
repos:
- http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

mysql_pkgs:
- libselinux-python
- mysql-server
- MySQL-python


mysql_service: mysqld

mysql_conf_dir: "/etc/"