ANSIBLE.MYSQL_DB(3)             ANSIBLE MODULES            ANSIBLE.MYSQL_DB(3)



NAME
       mysql_db - Add or remove MySQL databases from a remote host.

DESCRIPTION
       Add or remove MySQL databases from a remote host.

OPTIONS
       collation
              Collation mode

       encoding
              Encoding mode

       login_host
              Host running the database (default: localhost)

       login_password
              The password used to authenticate with

       login_user
              The username used to authenticate with

       name   name of the database to add or remove(required)

       state  The database state Choices: present,absent,dump,import.
              (default: present)

       target Where to dump/get the .sql file(required)."

NOTES
       Requires the MySQLdb Python package on the remote host. For Ubuntu,
       this is as easy as apt-get install python-mysqldb. (See apt.)

       Both login_password and login_username are required when you are
       passing credentials. If none are present, the module will attempt to
       read the credentials from ~/.my.cnf, and finally fall back to using the
       MySQL default login of root with no password.

EXAMPLES
       Create a new database with name 'bobdata'

       mysql_db: db=bobdata state=present

AUTHOR
       Mark Theunissen

SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#mysql-db



0.9                               2012-11-30               ANSIBLE.MYSQL_DB(3)
