因此需要自行加入repo,目前使用cbs repo
於/etc/yum.repos.d/cbs.repo加入如下
[virt7-ovirt-common-release]
name=virt7-ovirt-common-release
baseurl=https://cbs.centos.org/repos/virt7-ovirt-common-release/x86_64/os/
gpgcheck=0
即可yum install ansible 最新版本
[virt7-ovirt-common-release]
name=virt7-ovirt-common-release
baseurl=https://cbs.centos.org/repos/virt7-ovirt-common-release/x86_64/os/
gpgcheck=0
#!/bin/bash
# 移除舊版本docker並安裝新版
sudo yum remove -y docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-compose
sudo systemctl enable docker.service
sudo systemctl start docker.service
目標 於3臺 CentOS 7.6 minimal 上建置 MariaDB 10.3 Galera cluster