差異處

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

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:ansible [2023/09/03 22:48] jonathantech:ansible [2023/12/29 17:40] (目前版本) jonathan
行 169: 行 169:
 : :
 </cli> </cli>
 +  * 也可以執行 ansible-playbook 後面加上 **--vault-password-file** 指定解密密碼檔案 Exp. .vault_pass<cli> 
 +$ ansible-playbook -i inventory.yaml upgrade.yaml --vault-password-file ./.vault_pass 
 +</cli>
 ===== 參考網址 ===== ===== 參考網址 =====
   * https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html   * https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html
行 178: 行 180:
   * https://stackoverflow.com/questions/51771994/how-do-i-use-an-encrypted-variable-ansible-ssh-pass-in-an-ini-file   * https://stackoverflow.com/questions/51771994/how-do-i-use-an-encrypted-variable-ansible-ssh-pass-in-an-ini-file
   * https://stackoverflow.com/questions/30209062/ansible-how-to-encrypt-some-variables-in-an-inventory-file-in-a-separate-vault   * https://stackoverflow.com/questions/30209062/ansible-how-to-encrypt-some-variables-in-an-inventory-file-in-a-separate-vault
 +  * https://www.digitalocean.com/community/tutorials/how-to-use-vault-to-protect-sensitive-ansible-data
  
-{{tag>自動化 大量部署}}+{{tag>ansible 自動化 大量部署}}
  • tech/ansible.1693752483.txt.gz
  • 上一次變更: 2023/09/03 22:48
  • jonathan