差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:ansible [2023/10/12 13:56] – [參考網址] jonathantech:ansible [2023/12/29 17:40] (目前版本) jonathan
行 169: 行 169:
 : :
 </cli> </cli>
-  * 也可以執行 ansible-playbook 後面加上 **--vault-password-file** 指定解密密碼檔案 Exp. .vault-pass<cli> +  * 也可以執行 ansible-playbook 後面加上 **--vault-password-file** 指定解密密碼檔案 Exp. .vault_pass<cli> 
-$ ansible-playbook -i inventory.yaml upgrade.yaml --vault-password-file ./.vault-pass+$ ansible-playbook -i inventory.yaml upgrade.yaml --vault-password-file ./.vault_pass
 </cli> </cli>
 ===== 參考網址 ===== ===== 參考網址 =====
行 182: 行 182:
   * https://www.digitalocean.com/community/tutorials/how-to-use-vault-to-protect-sensitive-ansible-data   * https://www.digitalocean.com/community/tutorials/how-to-use-vault-to-protect-sensitive-ansible-data
  
-{{tag>自動化 大量部署}}+{{tag>ansible 自動化 大量部署}}
  • tech/ansible.1697090183.txt.gz
  • 上一次變更: 2023/10/12 13:56
  • jonathan