LoginSignup
35

More than 5 years have passed since last update.

ansibleでSSHのユーザ、パスワードを指定する方法

Posted at

ansibleでSSHのユーザやパスワードを指定したければインベントリファイルに書く方法がある。

[webservers]
192.168.111.222

[all:vars]
ansible_ssh_port=22
ansible_ssh_user=ansible
ansible_ssh_pass=p@ssW0rd
ansible_sudo_pass=p@ssW0rd

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
35