2015-09-09 62 views

回答

0
  • 做到這將是劇本的執行過程中指定--private-key最簡單的方法:

ansible-play -u username --private-key play.yml

  • 另一種選擇是增加ansible.cfg文件劇本目錄包含以下內容:

private_key_file=/path/to/file.pem

http://docs.ansible.com/ansible/intro_configuration.html#private-key-file

+0

[ssh_connection] ssh_args = -o ControlMaster =汽車-o ControlPersist = 60 -o ForwardAgent =是 確實起作用 – Eatdoku

相關問題