Commit e38e8747 by arbabnazar

OPS-1278 Create role to install MySQL locally that is not experimental

parent 7f4a8db8
---
mysql_debian_pkgs:
- software-properties-common
- mysql-server
- python-mysqldb
- "mysql-server=5.6.*"
---
- name: Add MySQL experimental apt key
- name: Add MySQL community apt key
apt_key:
id: 4F4EA0AAE5267A6C
id: 8C718D3B5072E1F5
keyserver: "{{ COMMON_EDX_PPA_KEY_SERVER }}"
state: present
- name: Install apt repository
- name: Install MySQL community apt repositories
apt_repository:
repo: 'deb http://ppa.launchpad.net/ondrej/mysql-experimental/ubuntu precise main'
repo: "{{ item }}"
update_cache: yes
with_items:
- "deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6"
- "deb-src http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6"
- name: install mysql 56 and dependencies
- name: Install mysql-5.6 and dependencies
apt:
name: "{{ item }}"
install_recommends: yes
force: yes
install_recommends: yes
update_cache: yes
state: present
with_items: mysql_debian_pkgs
- name: start mysql
- name: Start mysql
service:
name: mysql
state: started
......
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 to comment