Skip to content
README.rst 1.5 KiB
Newer Older
nimrod's avatar
nimrod committed
ansible-mysql
#############
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
An Ansible role to install and configure a MySQL server. The role creates an
admin account, force SSL usage, configures UFW and daily backup.
nimrod's avatar
nimrod committed

Requirements
------------

nimrod's avatar
nimrod committed
Debian Wheezy or later (Ubuntu Precise or later should probably work, but it's
untested).
nimrod's avatar
nimrod committed

Role Variables
--------------
nimrod's avatar
nimrod committed
::
nimrod's avatar
nimrod committed

nimrod's avatar
nimrod committed
    mysql_admin_password: #The password for the admin account.
nimrod's avatar
nimrod committed

Dependencies
------------

nimrod's avatar
nimrod committed
`Common role <https://www.shore.co.il/cgit/ansible-common/>`_
nimrod's avatar
nimrod committed

Example Playbook
----------------
nimrod's avatar
nimrod committed
::
nimrod's avatar
nimrod committed

    - hosts: servers
      roles:
nimrod's avatar
nimrod committed
      - role: mysql
        mysql_admin_password: qwerty123

Example requirements.yml
------------------------
::

    - src: https://www.shore.co.il/cgit/ansible-common
      scm: git
      path: roles/
      name: common

    - src: https://www.shore.co.il/cgit/ansible-mysql
      scm: git
      path: roles/
      name: mysql
nimrod's avatar
nimrod committed

License
-------

nimrod's avatar
nimrod committed
This software is licnesed under the MIT licese (see the ``LICENSE.txt`` file).
nimrod's avatar
nimrod committed

Author Information
------------------

nimrod's avatar
nimrod committed
Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website
<https://www.shore.co.il/>`_. Patches are welcome via `git send-email
<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located
at: https://www.shore.co.il/cgit/.
nimrod's avatar
nimrod committed

TODO
----

nimrod's avatar
nimrod committed
- Don't set a password for the root account, it's only accessible from the
  machine itself. Instead create an admin account, without root priviliges and
  with mandatory SSL for connecting. Also, other roles will set mandatory SSL
  for their connections.