{"id":19566140,"url":"https://github.com/deveryware/ansible-role-mysql-replication","last_synced_at":"2025-02-26T09:27:01.162Z","repository":{"id":42389887,"uuid":"359802316","full_name":"Deveryware/ansible-role-mysql-replication","owner":"Deveryware","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-18T14:35:03.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-09T00:11:43.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Deveryware.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-20T12:10:06.000Z","updated_at":"2022-03-29T20:31:59.000Z","dependencies_parsed_at":"2024-11-11T05:30:44.349Z","dependency_job_id":null,"html_url":"https://github.com/Deveryware/ansible-role-mysql-replication","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-role-mysql-replication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-role-mysql-replication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-role-mysql-replication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-role-mysql-replication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Deveryware","download_url":"https://codeload.github.com/Deveryware/ansible-role-mysql-replication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240824866,"owners_count":19863741,"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-11T05:29:49.505Z","updated_at":"2025-02-26T09:27:01.062Z","avatar_url":"https://github.com/Deveryware.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: MySQL Replication\n\nThis role configures mysql or mariadb replication with GTID if possible.\n\n## Requirements\n\nAt least two working mysql servers with binary logs enabled.\n\n## Role Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `mysql_replication_user` | Defines the replication user | mandatory |\n| `mysql_socket` | MySQL Unix domain socket used for connections | `/run/mysqld/mysqld.sock` |\n| `mysql_replication_primary` | IP address or FQDN of the primary | mandatory |\n| `mariadb_primary_use_gtid` | The value passed to [`primary_use_gtid`] (MariaDB only) | `slave_pos` |\n\n### `mysql_replication_user`\n\nThis variable represents the replication user and its associated rights as a YAML dictionary using the following structure:\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `name` | Name of the replication user | mandatory |\n| `host` | The 'host' part of the MySQL username | `%` |\n| `password` | User's password  | mandatory |\n| `priv` | MySQL privileges string in the format  | `*.*:REPLICATION SLAVE,REPLICATION CLIENT` |\n\nExample:\n\n```yaml\nmysql_replication_user:\n  name: replication\n  host: 192.168.25.%\n  password: \"{{ vault_replication_password }}\"\n```\n\n## Dependencies\n\ncollection community.mysql \u003e= 3.1.0 (included in ansible \u003e= 6.x)\n\n## Example of a bi-directional replication\n\nInventory:\n\n```yaml\nall:\n  children:\n    db:\n      vars:\n        mysql_replication_user:\n          name: replication\n          host: 192.68.25.%\n          password: \"P@ssW0rD!\"\n      hosts:\n        db1.exemple.com:\n          mysql_replication_primary: db2.exemple.com\n        db2.exemple.com:\n          mysql_replication_primary: db1.exemple.com\n```\n\nPlaybook:\n\n```yaml\n- hosts: db\n  roles:\n    - role: ansible-role-mysql-replication\n```\n\n## License\n\nMIT / ISC\n\n## Contributing\n\nTo get in touch with the author you can create a issue on github when requesting features.\n\n## Author Information\n\nThis role was created in 2021 by Olivier Pouilly on the behalf of Deveryware.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveryware%2Fansible-role-mysql-replication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveryware%2Fansible-role-mysql-replication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveryware%2Fansible-role-mysql-replication/lists"}