semaphore使用

环境:gitlab 192.168.232.128

semaphore 192.168.232.156

 

1.创建工程

semaphore使用

点击+号,创建想要的工程名

 

2.创建秘钥

 

semaphore使用

semaphore使用

此处公钥需填写ansible所在服务器公钥

 

3.创建存储库

semaphore使用

semaphore使用

地址为gitlab或github地址

4.创建目录

semaphore使用

 

semaphore使用

 

目录填写ansible-playbookx想要部署到哪台机器上

如:test.yml内部署在主机test,在semaphore就需对应

 

semaphore使用

 

5.配置模板

semaphore使用

semaphore使用