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
dd2c1325
Commit
dd2c1325
authored
Feb 06, 2017
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer need the ondrej MySQL PPA
(cherry picked from commit
6218350b
)
parent
a809daa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
23 deletions
+16
-23
playbooks/roles/mysql/tasks/mysql.yml
+16
-23
No files found.
playbooks/roles/mysql/tasks/mysql.yml
View file @
dd2c1325
...
...
@@ -3,7 +3,7 @@
#
# - 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
...
...
@@ -11,9 +11,9 @@
# * 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
...
...
@@ -21,17 +21,17 @@
# 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`
#
# - 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.
#
# 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
:
...
...
@@ -49,29 +49,22 @@
update_cache
:
yes
when
:
ansible_distribution_release == 'precise'
# repo.mysql.com does not have 5.6 packages for xenial
-
name
:
Install MySQL from ondrej PPA
apt_repository
:
repo
:
"
ppa:ondrej/mysql-5.6"
update_cache
:
yes
when
:
ansible_distribution_release == 'xenial'
-
name
:
Install mysql-5.6 and dependencies
apt
:
name
:
"
{{
item
}}"
apt
:
name
:
"
{{
item
}}"
install_recommends
:
yes
state
:
present
with_items
:
"
{{
mysql_debian_pkgs
}}"
-
name
:
Start mysql
service
:
name
:
mysql
service
:
name
:
mysql
state
:
started
-
name
:
Ensure Anonymous user(s) does not exist
mysql_user
:
name
:
'
'
host
:
"
{{
item
}}"
mysql_user
:
name
:
'
'
host
:
"
{{
item
}}"
state
:
absent
with_items
:
-
localhost
...
...
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