[英]How do I make ansible install nginx from a bitbucket repo to a target host?
如何從遠程bitbucket
存儲庫中獲取安裝程序,然后在目標主機上進行安裝?
在本地網絡(沒有互聯網連接)上,我有:
Ansible
在Rhel 7
虛擬機上 bitbucket
在Windows Server 2016
虛擬機上 Rhel 7 vm
它們都可以通過SSH相互連接。
您可以使用git模塊將安裝程序從git下載到控制器計算機。 流程如下所示:
controller machine:
git: copy the installer using ssh protocol
once the installer is on your local you can copy from controller to target
copy: from controller machine to target server
install: nginx
目標服務器
比特桶->回購
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.