Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
b7420c78
Commit
b7420c78
authored
Feb 03, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added the tasks to remove the mysql 5.6 experimental
parent
aba286b7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
4 deletions
+58
-4
playbooks/roles/mysql/defaults/main.yml
+2
-0
playbooks/roles/mysql/tasks/main.yml
+7
-4
playbooks/roles/mysql/tasks/mysql.yml
+34
-0
playbooks/roles/mysql/tasks/remove_mysql_experimental.yml
+15
-0
No files found.
playbooks/roles/mysql/defaults/main.yml
View file @
b7420c78
---
remove_experimental_mysql
:
false
mysql_debian_pkgs
:
-
"
mysql-server-5.6"
-
python-mysqldb
...
...
playbooks/roles/mysql/tasks/main.yml
View file @
b7420c78
...
...
@@ -6,8 +6,11 @@
changed_when
:
no
-
fail
:
msg
:
"
You
have
already
installed
the
experimental
MySQL
5.6
repo,
Please
first
remove
that"
when
:
"
'5.6.14'
in
mysql_56_installed.stdout"
msg
:
"
MySQL
experimental
is
already
installed,
make
remove_experimental_mysql:
true
in
defaults/main.yml,
if
you
want
to
remove
it"
when
:
"
'5.6.14'
in
mysql_56_installed.stdout
and
not
remove_experimental_mysql"
-
include
:
remove_mysql_experimental.yml
when
:
remove_experimental_mysql
-
include
:
mysql.yml
when
:
mysql_56_installed.rc == 1
\ No newline at end of file
when
:
(mysql_56_installed.rc == 1) or (remove_experimental_mysql)
\ No newline at end of file
playbooks/roles/mysql/tasks/mysql.yml
View file @
b7420c78
---
# Here are the few steps that I have performed to get the `debconf` setting information:
#
# - downloaded the mysql-apt-repo from the mysql official site(named: mysql-apt-config_0.6.0-1_all.deb)
# - Find the `debconf` setting information after installing this `deb` package
#
# # debconf-show mysql-apt-config
# * mysql-apt-config/select-server: mysql-5.6
# mysql-apt-config/unsupported-platform: abort
# mysql-apt-config/repo-codename: precise
# * mysql-apt-config/select-product: Apply
# mysql-apt-config/select-tools:
# mysql-apt-config/repo-distro: ubuntu
#
# - Even to get more information about the `debconf` options of the package:
#
# # debconf-get-selections|grep mysql-apt-config
# mysql-apt-config mysql-apt-config/select-server select mysql-5.6
# mysql-apt-config mysql-apt-config/unsupported-platform select abort
# mysql-apt-config mysql-apt-config/repo-codename select precise
# mysql-apt-config mysql-apt-config/select-product select Apply
# mysql-apt-config mysql-apt-config/select-tools select
# mysql-apt-config mysql-apt-config/repo-distro select ubuntu
#
# - After the installation, I have checked the `/etc/apt/sources.list.d` directory and found one file `mysql.list`
# with following contents:
#
# deb http://repo.mysql.com/apt/ubuntu/ precise mysql-apt-config
# deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6
# deb-src http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6
#
#
# Thought that instead of performing all those steps and get the repo, why not directly use this repo
# `deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6`, I just picked this line and directly used it and it worked for us.
-
name
:
Add MySQL community apt key
apt_key
:
id
:
8C718D3B5072E1F5
...
...
playbooks/roles/mysql/tasks/remove_mysql_experimental.yml
0 → 100644
View file @
b7420c78
---
-
name
:
Stop mysql service
service
:
name
:
mysql
state
:
stopped
-
name
:
Remove experimental version of mysql
apt
:
name
:
"
{{
item
}}"
state
:
absent
purge
:
yes
with_items
:
-
mysql-server-5.6
-
mysql-server
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment