LoginSignup
12
10

More than 5 years have passed since last update.

Vagrant で ansible_local を試す (CentOS7)

Last updated at Posted at 2016-04-04

開発チームが各個人で手軽に使えるVagrant環境を整えようとしたらおもいっきりハマった。

まさに↓の問題

ansible_localにハマりました。

重要なのは、 vagrant-vbguestをインストールすること。

vagrant plugin install vagrant-vbguest

あとは、ansible_localを動かすためのansible.cfgの設定。

[defaults]
host_key_checking = no

[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes

もう二度とハマりたくないのでサンプルを以下に置いた

vagrant-ansible_local-centos7-sample

12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10