Jenkins 集成Ansible教程
前提条件:
1. 部署Jenkins Server
2. 部署 Ansible Server
一、在Jenkins安装SSH插件
系统管理 -> 插件管理

二、在Jenkins 凭证中添加Ansible 账号
三、在Jenkins系统设置中添加SSH主机

四、在Jenkins freestyle job中添加构建 -> 远程执行SSH

说明:因为我的ansible是安装在 python-env环境下的,因此需要先启用python-env环境

五、执行构建

1. 部署Jenkins Server
2. 部署 Ansible Server
系统管理 -> 插件管理



说明:因为我的ansible是安装在 python-env环境下的,因此需要先启用python-env环境


