Commit f2bf4867 by Edward Zarecor

wip

bug fix

rename

Adding renamed

Adding key

typo

bad arg

Adding force yes

nuclear

comments, vars

ignore errors

fixing install check

ensuring started

moving tasks in, conditional inc not working

changing tac

missed one

typo

fixed conditional
parent 766fdd20
---
edxlocal_debian_pkgs:
- python-mysqldb
- mysql-server-5.5
- postfix
- libjpeg-dev
......@@ -10,6 +10,36 @@
# http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.62.tar.gz
#
---
# Install PPA for installing MySQL 5.6 on Ubuntu 12.04LTS
- name: install ppa key
apt_key:
id=E5267A6C
url='{{ COMMON_UBUNTU_APT_KEYSERVER }}0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C'
state=present
- name: install apt repository
apt_repository_1.8:
repo='deb http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu precise main'
update_cache=yes validate_certs=no
- name: look for mysql 5.5
shell: dpkg -L mysql-server-5.5
ignore_errors: true
register: mysql_55_installed
- include: remove_mysql_55.yml
when: mysql_55_installed.rc != 1
- name: install mysql 56 and dependencies
apt: pkg={{ item }} install_recommends=yes force=yes state=present
with_items:
- software-properties-common
- mysql-server
- name: start mysql
service: name=mysql state=started
- name: install packages needed for single server
apt: pkg={{','.join(edxlocal_debian_pkgs)}} install_recommends=yes state=present
......
---
#
# Tasks for fully removing mysql 5.5 from environments
# conditionally included when 5.5 is installed on the
# target system
#
- name: stop mysql
service: name=mysql state=stopped
- name: remove prior version of mysql
apt: pkg='{{ item }}' state='absent' purge='yes'
with_items:
- mysql-server-5.5
- mysql-server
\ No newline at end of file
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