星期三, 6月 15, 2016

openSUSE Leap42.1 with Ansible 2.1小記

OS: openSUSE Leap 42.1

目前 ansible 在 openSUSE Leap 42.1 版本為 1.9.3-1.1
# zypper   search   -v  ansible
正在載入套件庫資料...
讀取已安裝的套件...

S | 名稱    | 類型 | 版本      | 結構   | 套件庫                
--+---------+------+-----------+--------+-----------------------
 | ansible | 套件 | 1.9.3-1.1 | noarch | openSUSE-Leap-42.1-Oss

參考網路上的 systems management repo

新增 systems management 的套件庫 參考自己先前的文章 (http://sakananote2.blogspot.tw/2016/03/docker-unstable-package-install-with.html )


正在新增儲存庫 Various software for easier management of multiple systems (openSUSE_Leap_42.1) ....................................................[完成]
已成功新增套件庫 'Various software for easier management of multiple systems (openSUSE_Leap_42.1)'
已啟用       : 是                                                                             
自動重新整理 : 是                                                                             
GPG 檢查     : 是                                                                             
優先權       : 99                                                                             
位址         : http://download.opensuse.org/repositories/systemsmanagement/openSUSE_Leap_42.1/
  • --gpg-auto-import-keys 為自動匯入 gpg key
  • -f 為自動 refresh

搜尋 ansible

# zypper  search  -s  ansible
正在取出套件庫 'Various software for easier management of multiple systems (openSUSE_Leap_42.1)' 中介資訊 .........................................[完成]
正在建立儲存庫 Various software for easier management of multiple systems (openSUSE_Leap_42.1) 快取 ...............................................[完成]
正在載入套件庫資料...
讀取已安裝的套件...

S | 名稱    | 類型     | 版本         | 結構   | 套件庫                                                                         
--+---------+----------+--------------+--------+--------------------------------------------------------------------------------
 | ansible | 套件     | 2.1.0.0-50.1 | noarch | Various software for easier management of multiple systems (openSUSE_Leap_42.1)
 | ansible | 套件     | 1.9.3-1.1    | noarch | openSUSE-Leap-42.1-Oss                                                         
 | ansible | src 套件 | 2.1.0.0-50.1 | noarch | Various software for easier management of multiple systems (openSUSE_Leap_42.1)

安裝 ansible
# zypper  -n   install   ansible

驗證安裝
# zypper  search  -s  ansible
正在載入套件庫資料...
讀取已安裝的套件...

S | 名稱    | 類型     | 版本         | 結構   | 套件庫                                                                         
--+---------+----------+--------------+--------+--------------------------------------------------------------------------------
i | ansible | 套件     | 2.1.0.0-50.1 | noarch | Various software for easier management of multiple systems (openSUSE_Leap_42.1)


後續的實驗有關於 VMware 會用到 python-pyvmomi
VMware vSphere Python SDK
所以安裝相關套件庫

正在新增儲存庫 Python Modules (openSUSE_Leap_42.1) ................................................................................................[完成]
已成功新增套件庫 'Python Modules (openSUSE_Leap_42.1)'
已啟用       : 是                                                                                    
自動重新整理 : 是                                                                                    
GPG 檢查     : 是                                                                                    
優先權       : 99                                                                                    
位址         : http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_42.1/

# zypper  install   python-pyvmomi
正在載入套件庫資料...
讀取已安裝的套件...
正在解決套件相依性...

將會安裝下列 3 個新的套件:
 python-ndg-httpsclient python-pyvmomi python-requests

下列 1 個推薦的套件已自動被選取:
 python-ndg-httpsclient

3  新套件將被安裝.
全部下載大小:699.5 KiB。已快取:0 B。 完成操作後,將增加 3.7 MiB 的使用。
要繼續嗎? [y/n/? 顯示所有選項] (y):



先記下來

~enjoy it



沒有留言: