簡體   English   中英

如何從位存儲庫回購到目標主機進行ansible安裝Nginx?

[英]How do I make ansible install nginx from a bitbucket repo to a target host?

如何從遠程bitbucket存儲庫中獲取安裝程序,然后在目標主機上進行安裝?

在本地網絡(沒有互聯網連接)上,我有:

  • AnsibleRhel 7虛擬機上
  • bitbucketWindows 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM