More Related Content
Similar to Vagrant環境のAnsibleを速くしたい (20)
More from Kazuhiro Oinuma (6)
Vagrant環境のAnsibleを速くしたい
- 2. Who are you?
• @oinume
• CyberAgent, Inc
• amebaownd.com
• Go, Python
- 8. Profiling Ansible Tasks
• http://jlafon.io/ansible-profiling.html
• callback plugin
• taskごとに処理時間を表示
install mysql ------- 31.81s
apt update ---------- 11.88s
install nginx -------- 7.55s
install supervisor --- 4.09s
install uwsgi -------- 4.02s
install redis -------- 3.80s
- 13. VirtualBoxのNIC変更
• Intel PRO/1000 → virtio-net
• VirtualBoxではNICをエミュレートしない
• VirtualBox >= 3.1, Linux Kernel(Guest) >= 2.6.25
• Vagrantfileに2行追加するだけ
• vb.customize ["modifyvm", :id, "--nictype1", “virtio"]
• vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
• Playbookの実行が1.2倍速くなった (個人の感想です)