0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ansibleのメモ帳

0
Last updated at Posted at 2017-12-06

エラーの対処

  • The authenticity of host 'XXXX' can't be established
/etc/ansible/ansible.cfg あるいは ~/.ansible.cfg に
[defaults]
host_key_checking = False

もしくは

export ANSIBLE_HOST_KEY_CHECKING=False

設定メモ

  • localhostへの実行
localhost ansible_connection=local

参考: Running ansible playbook in localhost

  • コマンドラインからパラメータを渡す
---

- hosts: '{{ hosts }}'
  remote_user: '{{ user }}'

  tasks:
     - ...

ansible-playbook release.yml --extra-vars "hosts=vipers user=starbuck"
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?