rchouinard.mysql-community-repo

Ansible Role: MySQL Community Repository

This role installs the MySQL Community repository for RHEL/CentOS, Fedora, Debian, and Ubuntu.

Requirements

No special requirements.

Role Variables

The following variables are available, along with their default values (see defaults/main.yml):

  • mysql_repo_rpm_url: This is the URL for the MySQL RPM, which adjusts based on the operating system:

    • For Fedora: https://repo.mysql.com/mysql57-community-release-fc<version>.rpm
    • For others: https://repo.mysql.com/mysql57-community-release-el<version>.rpm
  • mysql_repo_deb_url: This is the URL for the MySQL APT configuration:

    • https://repo.mysql.com/mysql-apt-config_0.8.9-1_all.deb
  • mysql_repo_key_url: This is the URL for the GPG key:

    • https://repo.mysql.com/RPM-GPG-KEY-mysql
  • mysql_repo_key_id: This is the GPG key ID:

    • 8C718D3B5072E1F5

You usually don’t need to change these URLs, but if the role is outdated or if you need a specific version, you can override them.

Dependencies

No dependencies.

Example Playbook

Here's a simple playbook example:

- hosts: database
  roles:
    - rchouinard.mysql-community-repo

License

MIT License.

Author Information

This role was created by Ryan Chouinard in 2016.

Informazioni sul progetto

MySQL Community YUM Repositories

Installa
ansible-galaxy install rchouinard.mysql-community-repo
Licenza
mit
Download
430
Proprietario
DevOps Engineer at Paymentus