LoginSignup
70

More than 5 years have passed since last update.

[Ansible] sshで繋がずにlocalhostで実行する

Last updated at Posted at 2013-08-09

Ansible 1.6.2では特に設定不要だそうです (2014-05-28追記)

Ansibleチートシート(実行周り) - Qiitaの「ローカルでの実行」によるとAnsible 1.6.2では特に下記のような設定は不要だそうです。

以下元記事

ymlにconnection: localと書いておけば、わざわざlocalhostにsshで繋ぐことなくlocalhostで実行出来ます。コマンドラインで--connection=localと指定する手もあるそうです。

hosts: 127.0.0.1
connection: local

詳細はLocal Playbooksを参照してください。

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
What you can do with signing up
70