{"id":19998584,"url":"https://github.com/inmotionhosting/ansible-role-mysql","last_synced_at":"2026-02-14T23:01:17.346Z","repository":{"id":43163401,"uuid":"246080821","full_name":"inmotionhosting/ansible-role-mysql","owner":"inmotionhosting","description":"Modular Ansible Role for deploying and configuring MySQL/MariaDB","archived":false,"fork":false,"pushed_at":"2024-07-01T19:57:46.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-30T01:41:32.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/inmotionhosting/mysql","language":"Jinja","has_issues":true,"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/inmotionhosting.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-09T16:03:47.000Z","updated_at":"2025-02-27T07:39:42.000Z","dependencies_parsed_at":"2024-01-21T23:22:34.963Z","dependency_job_id":null,"html_url":"https://github.com/inmotionhosting/ansible-role-mysql","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/inmotionhosting/ansible-role-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inmotionhosting%2Fansible-role-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inmotionhosting%2Fansible-role-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inmotionhosting%2Fansible-role-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inmotionhosting%2Fansible-role-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inmotionhosting","download_url":"https://codeload.github.com/inmotionhosting/ansible-role-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inmotionhosting%2Fansible-role-mysql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263166135,"owners_count":23424104,"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-11-13T05:08:57.259Z","updated_at":"2025-10-03T23:10:13.335Z","avatar_url":"https://github.com/inmotionhosting.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Ansible Molecule Pipeline](https://github.com/inmotionhosting/ansible-role-mysql/actions/workflows/main.yml/badge.svg) [![GPL-3.0 License](https://img.shields.io/github/license/inmotionhosting/ansible-role-mysql.svg?color=blue)](https://github.com/inmotionhosting/ansible-role-mysql/blob/master/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/inmotionhosting/ansible-role-mysql.svg)](https://github.com/inmotionhosting/ansible-role-mysql/stargazers)\n\n![InMotion Hosting Ultrastack](https://www.inmotionhosting.com/wp-content/uploads/2024/01/ultrastack-logo-black-vertical.png)\n\n# Ansible Role: MySQL\nModular Ansible Role for deploying and configuring MySQL/MariaDB\n\n## Requirements\nThis Ansible role supports the two latest stable releases of specific\nserver-focused Linux distributions and aims to follow their deprecation\npolicies. Additionally we will focus on supporting the latest two stable\nreleases of each, which at the time of writing are as follows:\n\n* CentOS 7.x\n* Debian 10 or later\n* Ubuntu 20.04 LTS or later\n* AlmaLinux 8.x or later\n* RockyLinux 8.x or later\n\n## Dependencies\n* community.mysql\n\n## Role Variables\nAvailable variables are listed below with their default values (you can also see `defaults/main.yml`)\n\n| Variable | Description |\n| -------- | ----------- |\n| mysql_config_file | Default: `/etc/my.cnf`\n| mysql_config_include_dir | Default: `/etc/my.cnf.d`\n| mysql_daemon | Default: `mariadb`\n| mysql_innodb_buffer_pool_size | Default: `128M`\n| mysql_innodb_file_per_table | Default: `1`\n| mysql_innodb_log_buffer_size | Default: `16M`\n| mysql_innodb_log_file_size | Default: `96M`\n| mysql_log_dir | Default: `/var/log/`\n| mysql_log_error | Default: `\"{{ mysql_log_dir }}/mariadb/mariadb.log\"`\n| mysql_log_file_group | Default: `mysql`\n| mysql_log_warning | Default: `1`\n| mysql_packages | Default: `The MySQL packages to install`\n| mysql_query_alloc_block_size | Default: `16384`\n| mysql_query_cache_limit | Default: `1M`\n| mysql_query_cache_min_res_unit | Default: `4096`\n| mysql_query_cache_size | Default: `16M`\n| mysql_query_cache_strip_comments | Default: `0`\n| mysql_query_cache_type | Default: `1`\n| mysql_query_cache_wlock_invalidate | Default: `0`\n| mysql_query_prealloc_size | Default: `24576`\n| mysql_root_home | Default: `/root`\n| mysql_root_password_update | Default: `false`\n| mysql_root_username | Default: `root`\n| mysql_slow_query_log_enabled | Default: `true`\n| mysql_slow_query_log_file | Default: `\"{{ mysql_log_dir }}/mysql-slow.log\"`\n| mysql_socket | Default: `true`\n| mysql_socket_path | Default: `/var/lib/mysql/mysql.sock`\n| mysql_supports_innodb_large_prefix | Default: `true`\n| mysql_syslog_tag | Default: `mariadb`\n| password_generate | Default: `\"{{ lookup('password', '/dev/null length=15 chars=ascii_letters') }}\"`\n\n\n## Example Playbook\n```yaml\n- hosts: www\n  roles:\n     - role: inmotionhosting.mysql\n```\n\n## License\nGPLv3\n\n## Author Information\n[InMotion Hosting](https://inmotionhosting.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finmotionhosting%2Fansible-role-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finmotionhosting%2Fansible-role-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finmotionhosting%2Fansible-role-mysql/lists"}