Vagrant上でCentOS7(ansibleサーバ)とJuniper仮想ルータvsrxを建てて、以下のplaybook.ymlとhostsファイルで行ったのですがうまくいきません。
- hosts: junos gather_facts: no connection: local tasks: - name: DEFINE PROVIDER set_fact: hostinfo: host: "{{ inventory_hostname }}" password: xxxxxx username: root - name: show command junos_command: provider: "{{ hostinfo }}" commands: - show configration register: config - debug: var=config
[junos] 192.168.10.10 [junos:vars] ansible_ssh_user=root ansible_ssh_pass=xxxxx
エラー内容は以下のように出ます
FAILED! => {"msg": "Unknown host key [xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx] for [192.168.10.10]
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。