mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 19:30:18 +01:00
Allow mysql_packages to be configured.
This commit is contained in:
parent
8082fd69b9
commit
fa6a638162
3 changed files with 12 additions and 4 deletions
|
@ -18,6 +18,13 @@ If you have enabled any additional repositories (might I suggest geerlingguy.rep
|
|||
|
||||
The MySQL root user account password.
|
||||
|
||||
mysql_packages:
|
||||
- mysql
|
||||
- mysql-server
|
||||
- MySQL-python
|
||||
|
||||
Packages to be installed. In some situations, you may need to add additional packages, like `mysql-devel`.
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
||||
|
|
|
@ -6,10 +6,7 @@
|
|||
|
||||
- name: Ensure MySQL packages are installed.
|
||||
yum: name={{ item }} state=installed enablerepo={{ mysql_enablerepo }}
|
||||
with_items:
|
||||
- mysql
|
||||
- mysql-server
|
||||
- MySQL-python
|
||||
with_items: mysql_packages
|
||||
|
||||
- name: Copy my.cnf global MySQL configuration.
|
||||
copy: src=my.cnf dest=/etc/my.cnf owner=root group=root mode=0644
|
||||
|
|
|
@ -2,3 +2,7 @@
|
|||
# Pass in a comma-separated list of repos to use (e.g. "remi,epel").
|
||||
mysql_enablerepo: ""
|
||||
mysql_root_password: root
|
||||
mysql_packages:
|
||||
- mysql
|
||||
- mysql-server
|
||||
- MySQL-python
|
||||
|
|
Loading…
Reference in a new issue