updated ansible scripts to reflect MySQL 5.7 dependencies

parent b1c42a56
Showing with 10 additions and 2 deletions
......@@ -11,6 +11,12 @@
- root_password_again
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: Install MySQL repos
apt:
deb: http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
state: present
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: Update apt-get cache
apt:
update-cache: yes
......@@ -21,15 +27,17 @@
name: "{{ item }}"
state: present
with_items:
- mysql-server
- mysql-server-5.7
- mysql-client
- python-mysqldb # required by ansible
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: Add MySQL community repository
yum:
name: "http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm"
name: "http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm"
state: present
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
- name: Install mysql packages
yum:
name: "{{ item }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment