Skip to content

Commit 5f6d6bd

Browse files
author
Colin Hoglund
committed
add documentation for mysql_apt_repo
1 parent 460eedf commit 5f6d6bd

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ The MySQL users and their privileges. A user has the values `name`, `host` (defa
6262

6363
(OS-specific, RedHat/CentOS defaults listed here) Packages to be installed. In some situations, you may need to add additional packages, like `mysql-devel`.
6464

65+
mysql_apt_repo_enable: false
66+
67+
Use repo.mysql.com to install mysql packages. Used only for Debian based systems. Disabled by default.
68+
69+
mysql_apt_repo_release: "{{ansible_distribution_release}}"
70+
71+
Override this if you want to install older versions of mysql on newer OS releases.
72+
73+
mysql_apt_repo_sources: [mysql-5.7]
74+
75+
A list of sources to add to _/etc/apt/sources.list.d/_. Go to http://repo.mysql.com/apt/ubuntu/dists/trusty/ to see some examples.
76+
6577
mysql_enablerepo: ""
6678

6779
(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest geerlingguy.repo-epel or geerlingguy.repo-remi), those repositories can be listed under this variable (e.g. `remi,epel`). This can be handy, as an example, if you want to install later versions of MySQL.

defaults/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ overwrite_global_mycnf: yes
1717

1818
# Use repo.mysql.com to install mysql packages. Used only for Debian based systems
1919
mysql_apt_repo_enable: false
20-
# override this if you want to install older versions of mysql on newer OS releases
20+
# Override this if you want to install older versions of mysql on newer OS releases
2121
mysql_apt_repo_release: "{{ansible_distribution_release}}"
22-
# check the repo for available entries
23-
# Example: http://repo.mysql.com/apt/ubuntu/dists/trusty/
24-
mysql_apt_repo_entries: [mysql-5.7]
22+
# A list of sources to add to _/etc/apt/sources.list.d/_
23+
# Go to http://repo.mysql.com/apt/ubuntu/dists/trusty/ to see some examples
24+
mysql_apt_repo_sources: [mysql-5.7]
2525

2626
# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only
2727
# for RedHat systems (and derivatives).

tasks/setup-Debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- name: Add repo.mysql.com apt repo
1111
apt_repository:
1212
repo: "deb http://repo.mysql.com/apt/{{ansible_distribution|lower}}/ {{mysql_apt_repo_release}} {{item}}"
13-
with_items: "{{mysql_apt_repo_entries}}"
13+
with_items: "{{mysql_apt_repo_sources}}"
1414
when: mysql_apt_repo_enable
1515

1616
- name: Update apt to prefer repo.mysql.com packages

0 commit comments

Comments
 (0)