2017-06-15 21 views
1

コアモジュールjunos_configのAnsible 2.3ではエラー "シェルを開くことができません"が表示されます。有能な2.3コアモジュールjunos_config - 失敗 "シェルを開くことができません"

マイ脚本

25  tasks: 
26  - name:   Build configuration 
27   template:  src={{ playbook_dir }}/bgp.j2 dest={{ build }}/{{ inventory_hostname }}.conf 
28   notify: 
29   -   Pushing config ... please wait 
30  handlers: 
31  - name:   Pushing config ... please wait 
32   junos_config: 
33   host:  "{{ inventory_hostname }}" 
34   provider: "{{ credentials }}" 
35   src:   "{{ build }}/{{ inventory_hostname }}.conf" 
36   src_format: set 
37   comment:  "config by Ansible junos_config" 

出力:

[email protected]:~/bgp$ ansible-playbook pb2.bgp.yml 

PLAY [Create config/build directory] 
******************************************* 

TASK [Remove build directory] 
************************************************** 
changed: [localhost] 


RUNNING HANDLER [Pushing config ... please wait] 
****************************************************** 
fatal: [vsrx1]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell. Please see: 
https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell", "rc": 255} 
fatal: [vsrx2]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell. Please see: 
https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell", "rc": 255} 

これはAnsible-2.3ではAnsible 2.2

答えて

2

で動作し、SSHホストキーのチェックはデフォルトで行われます。このチェックのため、このエラーが発生する可能性があります。あなたはansible.cfg

詳細に一時的にこの設定を無効にしようとする場合があります現在地: http://docs.ansible.com/ansible/intro_configuration.html#host-key-checking

関連する問題