Install MySQL 5.7 On CentOS via Ansible Playbook

- name: Install MySQL
  hosts: test123
  become: true
  become_user: root
  gather_facts: true
  tasks:
    - name: "Installing Repo & Packages"
      yum: name=http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
    - name: Install MySQL 5.7
      yum: pkg={{ item }}
      with_items:
    - mysql-community-server
    - mysql-community-client

Leave a Reply