codezm.mysql

Role Name

codezm.mysql

Requirements

RHEL/CentOS:7、8

Role Variables

Variables Description
__ansible_get_url_timeout wget 命令超时时间
__package_tmp_save_dir 目标服务器临时目录
__clean_origin_file true: 代表清除原始文件,false: 代表保留
env_install_way 安装方式。file: 文件模式(将从 files 目录拷贝),network: 从网络下载(默认)

其余涉及变量在 vars/main.yml 文件中

Dependencies

codezm.base

Example Playbook

使用源安装方案
  1. 自定义 repo 文件,放置于 files 目录中
    _mysql_repo_type: "file"
    _mysql_repo_file: "mysql-community-RHEL-8.repo"
    
  2. repo url 地址
    _mysql_repo_type: "rpm"
    _mysql_package_name: "http://mirrors.ustc.edu.cn/mysql-repo/mysql80-community-release-el8-1.noarch.rpm"
    
不使用源安装方案
  1. 下载 mysql-community-server 软件包及其依赖包,默认使用此模式。
  2. 提前将 mysql-community-server 相关软件包下载至 files 目录,并指定 -e "env_install_way=file" 作为执行参数。

License

MIT

About

Mysql Sever for RHEL/CentOS.

Install
ansible-galaxy install codezm.mysql
GitHub repository
License
mit
Downloads
89
Owner
phper