1,gitlab(100) 安装ansible
rpm -Uvh http://mirrors.ustc.edu.cn/epel/epel-release-latest-7.noarch.rpm yum install epel-release -y yum install ansible -y
2,部署机子的机子(101)安装supervisor
yum install epel-release yum install -y supervisor systemctl start supervisord
3,将gitlab 的公钥添加到 部署机子的 /root/.ssh/authorized_keys 中,没有则创建
ssh-rsa AAAwLL+bXjrC3WJAQWJa8OScPjNNNBQjtSgKHx0/t2my5FxNazpd32UDpZ/ywSVVZHuj8I09 root@k8s-master
4,查看 supervisord 配置文件
ps aux|grep super
5,编辑 /etc/supervisord.conf 文件,加载指定文件夹下的 ini 文件
[include] files = /etc/supervisord.d/*.ini
标签:epel,ci,supervisord,ansible,yum,install,release From: https://www.cnblogs.com/dongma/p/16740903.html