Skip to content

Commit

Permalink
Add option for choosing specfic version
Browse files Browse the repository at this point in the history
  • Loading branch information
yatesr committed Nov 6, 2014
1 parent aafce9b commit 5c77dbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ mysql_collation_default: utf8_unicode_ci
mysql_encoding_default: utf8

# Name of pacakge to install, should be automatically filled based on distro.
# Override in your playbook if you know exactly what package you want. (e.g. mysql-server-5.6)
# Override in your playbook if you know exactly what package you want.
mysql_server_pkg: mysql-server
# Specific version of mysql to install, leave blank for default version. (i.e. -5.6)
mysql_server_version:

# Run the equivalent of mysql_secure_installation.
# Remove anonymous access, remove test db.
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
update_cache=yes
cache_valid_time=86400
with_items:
- "{{mysql_server_pkg}}"
- "{{mysql_server_pkg}}{{mysql_server_version}}"
- python-mysqldb
when: ansible_os_family == 'Debian'

Expand Down

0 comments on commit 5c77dbe

Please sign in to comment.