Upgrade to Pro — share decks privately, control downloads, hide ads and more …

加速你的Ansible

Eric
April 28, 2018

 加速你的Ansible

2018/04/28@DevOps Taiwan Meetup
https://devops.kktix.cc/events/meetup13-0428

Eric

April 28, 2018
Tweet

More Decks by Eric

Other Decks in Technology

Transcript

  1. SSH Control Persist OpenSSH 5.6 或更高 vim ~/.ssh/config Host *

    ControlPersist 1h Compression yes ControlMaster auto ControlPath ~/.ssh/sockets/%r@%h-%p :wq // 連線持久化保留1小時 // 啟用壓縮 // ssh連線共用 //socket保存路徑
  2. 總結 1. Ansible-profile 收集數據 2. Disable gathering facts (視情況) 3.

    Fork Process (ansible-playbook -f n) 4. SSH PIPELINING (視情況) 5. SSH Control Persist (OpenSSH 5.6 或更高)