diff --git a/tasks/main.yml b/tasks/main.yml index 8aa036c..2f0e961 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/vars/RedHat.yml b/vars/RedHat.yml index 115dfe8..69521f8 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -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/"