{"id":15946086,"url":"https://github.com/swissmanu/ansible-mysql","last_synced_at":"2025-04-03T22:26:13.160Z","repository":{"id":20655050,"uuid":"23937217","full_name":"swissmanu/ansible-mysql","owner":"swissmanu","description":"Install and manage a MySQL server","archived":false,"fork":false,"pushed_at":"2014-09-11T21:59:20.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T23:20:15.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swissmanu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-11T21:57:29.000Z","updated_at":"2019-05-25T10:03:08.000Z","dependencies_parsed_at":"2022-08-31T08:42:10.259Z","dependency_job_id":null,"html_url":"https://github.com/swissmanu/ansible-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swissmanu%2Fansible-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swissmanu%2Fansible-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swissmanu%2Fansible-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swissmanu%2Fansible-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swissmanu","download_url":"https://codeload.github.com/swissmanu/ansible-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247087781,"owners_count":20881458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T09:10:20.532Z","updated_at":"2025-04-03T22:26:13.138Z","avatar_url":"https://github.com/swissmanu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## mysql\n\n[![Travis CI](https://secure.travis-ci.org/debops/ansible-mysql.png)](http://travis-ci.org/debops/ansible-mysql) [![test-suite](http://img.shields.io/badge/test--suite-ansible--mysql-blue.svg)](https://github.com/debops/test-suite/tree/master/ansible-mysql/) [![Ansible Galaxy](http://img.shields.io/badge/galaxy-debops.mysql-660198.svg)](https://galaxy.ansible.com/list#/roles/1577) [![Platforms](http://img.shields.io/badge/platforms-debian%20|%20ubuntu-lightgrey.svg)](#)\n\nInstall and manage a MySQL database. At the moment only database on\n`localhost` is supported.\n\nYou can use this role as a dependency of another role to easily create\ndatabases and users for a particular application (database and user\nmanagement is also available using Ansible inventory).\n\n\n### Installation\n\nThis role requires at least Ansible `v1.7.0`. To install it, run:\n\n    ansible-galaxy install debops.mysql\n\n\n\n### Role dependencies\n\n- `debops.secret`\n- `debops.ferm`\n- `debops.tcpwrappers`\n\n\n\n### Role variables\n\nList of default variables available in the inventory:\n\n    ---\n    \n    # Length of randomly generated passwords (it's a string)\n    mysql_password_length: '20'\n    \n    # Password for MySQL root user\n    mysql_root_password: \"{{ lookup('password', secret + '/credentials/' + ansible_fqdn + '/mysql/root/password length=' + mysql_password_length) }}\"\n    \n    # Enable PHPMyAdmin? It will be installed on localhost with php5-fpm and nginx\n    # See 'phpmyadmin' role for more configuration options\n    mysql_phpmyadmin: False\n    \n    mysql_backup_mailaddr: 'backup'\n    mysql_backup_doweekly: 6\n    mysql_backup_latest: 'no'\n    \n    mysql_mysqld_bind_address: 'localhost'\n    mysql_mysqld_port: 3306\n    mysql_mysqld_max_connections: 100\n    \n    # List of MySQL databases to manage\n    mysql_databases: []\n      #- name: 'database_name'\n      #  state: 'present,absent'        # optional\n    \n    # List of MySQL users to manage (defaults first)\n    mysql_users: []\n      #- name: 'user_name'              # required\n      #  host: 'localhost'\n      #  state: 'present,absent'\n      #  password: ''                   # if not specified, random will be generated\n      #                                 # and saved in the 'secret' storage\n      #  priv: 'user_name.*:ALL'\n      #  append_privs: 'no,yes'\n    \n    # Use this variable to set additional mysqld options\n    #mysql_mysqld_options:\n    #  key_buffer: '16M'\n    #  skip-name-resolve:\n    \n    # This is a list of IP addresses or CIDR networks allowed to connect to MySQL\n    # server from remote hosts. It will be applied in firewall (ferm) and\n    # /etc/hosts.allow (tcpwrappers).\n    # You will need to set mysql_mysqld_bind_address to 0.0.0.0 and restart MySQL\n    # server for it to listen on all network interfaces.\n    mysql_mysqld_allow: []\n\n\n\n\n### Authors and license\n\n`mysql` role was written by:\n\n- Maciej Delmanowski | [e-mail](mailto:drybjed@gmail.com) | [Twitter](https://twitter.com/drybjed) | [GitHub](https://github.com/drybjed)\n\nLicense: [GPLv3](https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3))\n\n***\n\nThis role is part of the [DebOps](http://debops.org/) project. README generated by [ansigenome](https://github.com/nickjj/ansigenome/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswissmanu%2Fansible-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswissmanu%2Fansible-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswissmanu%2Fansible-mysql/lists"}