<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ansible - iosxe - modules failed to execute: ansible.legacy.ios_facts in Tools</title>
    <link>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908171#M3373</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I am trying to run ansible on Cisco IOS XE cat4500, I am experiencing the following error:&lt;/P&gt;&lt;P&gt;"msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"}&lt;/P&gt;&lt;P&gt;/etc/ansible$ ansible-playbook -i hosts site.yml -u cisco -k&lt;BR /&gt;SSH password:&lt;/P&gt;&lt;P&gt;PLAY [Test Ansible ios_command on Cisco IOS XE] ****************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Gathering Facts] *****************************************************************************************************************************&lt;BR /&gt;fatal: [10.1.199.199]: FAILED! =&amp;gt; {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.ios_facts": {"failed": true, "invocation": {"module_args": {"available_network_resources": false, "gather_network_resources": null, "gather_subset": ["min"]}}, "msg": "socket path /home/wolfm/.ansible/pc/cfb7b81b73 does not exist or cannot be found. See Troubleshooting socket path issues in the Network Debug and Troubleshooting Guide"}}, "msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"}&lt;/P&gt;&lt;P&gt;PLAY RECAP *****************************************************************************************************************************************&lt;BR /&gt;10.1.199.199 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ tree&lt;BR /&gt;.&lt;BR /&gt;├── hosts&lt;BR /&gt;└── site.yml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;:/etc/ansible$ cat hosts&lt;BR /&gt;[iosxe]&lt;BR /&gt;10.1.199.199&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[iosxe:vars]&lt;BR /&gt;ansible_network_os=ios&lt;BR /&gt;ansible_connection=network_cli&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/etc/ansible$ cat site.yml&lt;BR /&gt;---&lt;BR /&gt;- name: Test Ansible ios_command on Cisco IOS XE&lt;BR /&gt;hosts: iosxe&lt;/P&gt;&lt;P&gt;tasks:&lt;BR /&gt;- name: show version and ip interface brief&lt;BR /&gt;ios_command:&lt;BR /&gt;commands:&lt;BR /&gt;- show version&lt;BR /&gt;- show ip interface brief&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 19 Aug 2023 00:48:29 GMT</pubDate>
    <dc:creator>Netmart</dc:creator>
    <dc:date>2023-08-19T00:48:29Z</dc:date>
    <item>
      <title>Ansible - iosxe - modules failed to execute: ansible.legacy.ios_facts</title>
      <link>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908171#M3373</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I am trying to run ansible on Cisco IOS XE cat4500, I am experiencing the following error:&lt;/P&gt;&lt;P&gt;"msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"}&lt;/P&gt;&lt;P&gt;/etc/ansible$ ansible-playbook -i hosts site.yml -u cisco -k&lt;BR /&gt;SSH password:&lt;/P&gt;&lt;P&gt;PLAY [Test Ansible ios_command on Cisco IOS XE] ****************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Gathering Facts] *****************************************************************************************************************************&lt;BR /&gt;fatal: [10.1.199.199]: FAILED! =&amp;gt; {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.ios_facts": {"failed": true, "invocation": {"module_args": {"available_network_resources": false, "gather_network_resources": null, "gather_subset": ["min"]}}, "msg": "socket path /home/wolfm/.ansible/pc/cfb7b81b73 does not exist or cannot be found. See Troubleshooting socket path issues in the Network Debug and Troubleshooting Guide"}}, "msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"}&lt;/P&gt;&lt;P&gt;PLAY RECAP *****************************************************************************************************************************************&lt;BR /&gt;10.1.199.199 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ tree&lt;BR /&gt;.&lt;BR /&gt;├── hosts&lt;BR /&gt;└── site.yml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;:/etc/ansible$ cat hosts&lt;BR /&gt;[iosxe]&lt;BR /&gt;10.1.199.199&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[iosxe:vars]&lt;BR /&gt;ansible_network_os=ios&lt;BR /&gt;ansible_connection=network_cli&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/etc/ansible$ cat site.yml&lt;BR /&gt;---&lt;BR /&gt;- name: Test Ansible ios_command on Cisco IOS XE&lt;BR /&gt;hosts: iosxe&lt;/P&gt;&lt;P&gt;tasks:&lt;BR /&gt;- name: show version and ip interface brief&lt;BR /&gt;ios_command:&lt;BR /&gt;commands:&lt;BR /&gt;- show version&lt;BR /&gt;- show ip interface brief&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 00:48:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908171#M3373</guid>
      <dc:creator>Netmart</dc:creator>
      <dc:date>2023-08-19T00:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - iosxe - modules failed to execute: ansible.legacy.ios_fa</title>
      <link>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908202#M3374</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The error message "socket path /home/wolfm/.ansible/pc/cfb7b81b73 does not exist or cannot be found" means that the Ansible control socket cannot be created or opened at the specified path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try running with -vvv for more verbose output.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 06:56:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908202#M3374</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2023-08-19T06:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - iosxe - modules failed to execute: ansible.legacy.ios_fa</title>
      <link>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908354#M3375</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I tried to run with -vvv&lt;/P&gt;&lt;P&gt;$ ansible-playbook -i hosts site.yml -u cisco -k -vvv&lt;BR /&gt;ansible-playbook [core 2.15.3]&lt;BR /&gt;config file = None&lt;BR /&gt;configured module search path = ['/home/cisco/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']&lt;BR /&gt;ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible&lt;BR /&gt;ansible collection location = /home/cisco/.ansible/collections:/usr/share/ansible/collections&lt;BR /&gt;executable location = /usr/bin/ansible-playbook&lt;BR /&gt;python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] (/usr/bin/python3)&lt;BR /&gt;jinja version = 3.0.3&lt;BR /&gt;libyaml = True&lt;BR /&gt;No config file found; using defaults&lt;BR /&gt;SSH password:&lt;BR /&gt;host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Parsed /etc/ansible/hosts inventory source with ini plugin&lt;BR /&gt;redirecting (type: modules) ansible.builtin.ios_command to cisco.ios.ios_command&lt;BR /&gt;Skipping callback 'default', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'minimal', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'oneline', as we already have a stdout callback.&lt;/P&gt;&lt;P&gt;PLAYBOOK: site.yml *********************************************************************************************************************************&lt;BR /&gt;1 plays in site.yml&lt;/P&gt;&lt;P&gt;PLAY [Test Ansible ios_command on Cisco IOS XE] ****************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Gathering Facts] *****************************************************************************************************************************&lt;BR /&gt;task path: /etc/ansible/site.yml:2&lt;BR /&gt;redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli&lt;BR /&gt;redirecting (type: terminal) ansible.builtin.ios to cisco.ios.ios&lt;BR /&gt;redirecting (type: cliconf) ansible.builtin.ios to cisco.ios.ios&lt;BR /&gt;redirecting (type: modules) ansible.builtin.ios_facts to cisco.ios.ios_facts&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; ESTABLISH LOCAL CONNECTION FOR USER: cisco&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c '( umask 77 &amp;amp;&amp;amp; mkdir -p "` echo /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe `"&amp;amp;&amp;amp; mkdir "` echo /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/ansible-tmp-1692508229.287533-2758956-148054784301174 `" &amp;amp;&amp;amp; echo ansible-tmp-1692508229.287533-2758956-148054784301174="` echo /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/ansible-tmp-1692508229.287533-2758956-148054784301174 `" ) &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;redirecting (type: modules) ansible.builtin.ios_facts to cisco.ios.ios_facts&lt;BR /&gt;Using module file /usr/local/lib/python3.10/dist-packages/ansible_collections/cisco/ios/plugins/modules/ios_facts.py&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; PUT /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/tmpe7fl69j7 TO /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/ansible-tmp-1692508229.287533-2758956-148054784301174/AnsiballZ_ios_facts.py&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c 'chmod u+x /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/ansible-tmp-1692508229.287533-2758956-148054784301174/ /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/ansible-tmp-1692508229.287533-2758956-148054784301174/AnsiballZ_ios_facts.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c '/usr/bin/python3 /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/ansible-tmp-1692508229.287533-2758956-148054784301174/AnsiballZ_ios_facts.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c 'rm -f -r /home/cisco/.ansible/tmp/ansible-local-27589347gwvaahe/ansible-tmp-1692508229.287533-2758956-148054784301174/ &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;fatal: [10.254.199.199]: FAILED! =&amp;gt; {&lt;BR /&gt;"ansible_facts": {},&lt;BR /&gt;"changed": false,&lt;BR /&gt;"failed_modules": {&lt;BR /&gt;"ansible.legacy.ios_facts": {&lt;BR /&gt;"exception": " File \"/tmp/ansible_ansible.legacy.ios_facts_payload_bpduxpy3/ansible_ansible.legacy.ios_facts_payload.zip/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/network.py\", line 215, in get_capabilities\n capabilities = Connection(module._socket_path).get_capabilities()\n File \"/tmp/ansible_ansible.legacy.ios_facts_payload_bpduxpy3/ansible_ansible.legacy.ios_facts_payload.zip/ansible/module_utils/connection.py\", line 194, in __rpc__\n response = self._exec_jsonrpc(name, *args, **kwargs)\n File \"/tmp/ansible_ansible.legacy.ios_facts_payload_bpduxpy3/ansible_ansible.legacy.ios_facts_payload.zip/ansible/module_utils/connection.py\", line 141, in _exec_jsonrpc\n raise ConnectionError(\n",&lt;BR /&gt;"failed": true,&lt;BR /&gt;"invocation": {&lt;BR /&gt;"module_args": {&lt;BR /&gt;"available_network_resources": false,&lt;BR /&gt;"gather_network_resources": null,&lt;BR /&gt;"gather_subset": [&lt;BR /&gt;"min"&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"msg": "socket path /home/cisco/.ansible/pc/f056954806 does not exist or cannot be found. See Troubleshooting socket path issues in the Network Debug and Troubleshooting Guide"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PLAY RECAP *****************************************************************************************************************************************&lt;BR /&gt;10.254.199.199 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 05:13:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908354#M3375</guid>
      <dc:creator>Netmart</dc:creator>
      <dc:date>2023-08-20T05:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - iosxe - modules failed to execute: ansible.legacy.ios_fa</title>
      <link>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908361#M3376</link>
      <description>&lt;P&gt;I made same progress by raising the privileges sfor site.yml and hosts file and install paramariko:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ sudo ansible-playbook -vvv -i hosts site.yml -u cisco -k&lt;BR /&gt;ansible-playbook [core 2.15.3]&lt;BR /&gt;config file = None&lt;BR /&gt;configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']&lt;BR /&gt;ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible&lt;BR /&gt;ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections&lt;BR /&gt;executable location = /usr/local/bin/ansible-playbook&lt;BR /&gt;python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] (/usr/bin/python3)&lt;BR /&gt;jinja version = 3.0.3&lt;BR /&gt;libyaml = True&lt;BR /&gt;No config file found; using defaults&lt;BR /&gt;SSH password:&lt;BR /&gt;host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Parsed /etc/ansible/hosts inventory source with ini plugin&lt;BR /&gt;redirecting (type: modules) ansible.builtin.ios_command to cisco.ios.ios_command&lt;BR /&gt;Skipping callback 'default', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'minimal', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'oneline', as we already have a stdout callback.&lt;/P&gt;&lt;P&gt;PLAYBOOK: site.yml *********************************************************************************************************************************&lt;BR /&gt;1 plays in site.yml&lt;/P&gt;&lt;P&gt;PLAY [Test Ansible ios_command on Cisco IOS XE] ****************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Gathering Facts] *****************************************************************************************************************************&lt;BR /&gt;task path: /etc/ansible/site.yml:2&lt;BR /&gt;redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli&lt;BR /&gt;redirecting (type: terminal) ansible.builtin.ios to cisco.ios.ios&lt;BR /&gt;redirecting (type: cliconf) ansible.builtin.ios to cisco.ios.ios&lt;BR /&gt;[WARNING]: ansible-pylibssh not installed, falling back to paramiko&lt;BR /&gt;redirecting (type: modules) ansible.builtin.ios_facts to cisco.ios.ios_facts&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; ESTABLISH LOCAL CONNECTION FOR USER: root&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c '( umask 77 &amp;amp;&amp;amp; mkdir -p "` echo /root/.ansible/tmp/ansible-local-2765610uledwhch `"&amp;amp;&amp;amp; mkdir "` echo /root/.ansible/tmp/ansible-local-2765610uledwhch/ansible-tmp-1692510303.0462918-2765633-98595561764949 `" &amp;amp;&amp;amp; echo ansible-tmp-1692510303.0462918-2765633-98595561764949="` echo /root/.ansible/tmp/ansible-local-2765610uledwhch/ansible-tmp-1692510303.0462918-2765633-98595561764949 `" ) &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;redirecting (type: modules) ansible.builtin.ios_facts to cisco.ios.ios_facts&lt;BR /&gt;Using module file /usr/local/lib/python3.10/dist-packages/ansible_collections/cisco/ios/plugins/modules/ios_facts.py&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; PUT /root/.ansible/tmp/ansible-local-2765610uledwhch/tmp4l42imnb TO /root/.ansible/tmp/ansible-local-2765610uledwhch/ansible-tmp-1692510303.0462918-2765633-98595561764949/AnsiballZ_ios_facts.py&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-2765610uledwhch/ansible-tmp-1692510303.0462918-2765633-98595561764949/ /root/.ansible/tmp/ansible-local-2765610uledwhch/ansible-tmp-1692510303.0462918-2765633-98595561764949/AnsiballZ_ios_facts.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-local-2765610uledwhch/ansible-tmp-1692510303.0462918-2765633-98595561764949/AnsiballZ_ios_facts.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;10.254.199.199&amp;gt; EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-2765610uledwhch/ansible-tmp-1692510303.0462918-2765633-98595561764949/ &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;fatal: [10.254.199.199]: FAILED! =&amp;gt; {&lt;BR /&gt;"ansible_facts": {},&lt;BR /&gt;"changed": false,&lt;BR /&gt;"failed_modules": {&lt;BR /&gt;"ansible.legacy.ios_facts": {&lt;BR /&gt;"exception": " File \"/tmp/ansible_ansible.legacy.ios_facts_payload_8wdczifu/ansible_ansible.legacy.ios_facts_payload.zip/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/network.py\", line 215, in get_capabilities\n capabilities = Connection(module._socket_path).get_capabilities()\n File \"/tmp/ansible_ansible.legacy.ios_facts_payload_8wdczifu/ansible_ansible.legacy.ios_facts_payload.zip/ansible/module_utils/connection.py\", line 200, in __rpc__\n raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)\n",&lt;BR /&gt;"failed": true,&lt;BR /&gt;"invocation": {&lt;BR /&gt;"module_args": {&lt;BR /&gt;"available_network_resources": false,&lt;BR /&gt;"gather_network_resources": null,&lt;BR /&gt;"gather_subset": [&lt;BR /&gt;"min"&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"msg": "paramiko: The authenticity of host '10.254.199.199' can't be established.\nThe ssh-rsa key fingerprint is b'506db790d7e4ea48c13946cb647c3d6c'."&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PLAY RECAP *****************************************************************************************************************************************&lt;BR /&gt;10.254.199.199 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 05:47:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908361#M3376</guid>
      <dc:creator>Netmart</dc:creator>
      <dc:date>2023-08-20T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - iosxe - modules failed to execute: ansible.legacy.ios_fa</title>
      <link>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908398#M3377</link>
      <description>&lt;P&gt;Try disabling host key checking. There are three options to do this.&lt;/P&gt;
&lt;P&gt;1. in your inventory using the &lt;EM&gt;ansible_host_key_checking&lt;/EM&gt; variable&amp;nbsp;&lt;BR /&gt;2. in your ansible.cfg config file:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[defaults]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;host_key_checking = False&lt;/FONT&gt;&lt;BR /&gt;3. via an environment variable&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;export ANSIBLE_HOST_KEY_CHECKING=False&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 08:44:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908398#M3377</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-08-20T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - iosxe - modules failed to execute: ansible.legacy.ios_fa</title>
      <link>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908544#M3378</link>
      <description>&lt;P&gt;Thank you Marcel.&lt;/P&gt;&lt;P&gt;I had to create the ansible.cfg under ansible directory first and then adding the suggesting parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[defaults]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;# some basic default values...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inventory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $HOME/.ansible/hosts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;remote_tmp&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $HOME/.ansible/&lt;/STRONG&gt;&lt;STRONG&gt;tmp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;forks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 150&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sudo_user&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = root&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transport&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = smart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;# plays will gather facts by default, which contain information about&lt;/P&gt;&lt;P&gt;# the remote system.&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# smart - gather by default, but don't regather if already gathered&lt;/P&gt;&lt;P&gt;# implicit - gather by default, turn off with gather_facts: False&lt;/P&gt;&lt;P&gt;# explicit - do not gather by default, must say gather_facts: True&lt;/P&gt;&lt;P&gt;gathering = smart&lt;/P&gt;&lt;P&gt;# additional paths to search for roles in, colon separated&lt;/P&gt;&lt;P&gt;roles_path&amp;nbsp;&amp;nbsp;&amp;nbsp; = $HOME/.ansible/roles&lt;/P&gt;&lt;P&gt;# uncomment this to disable SSH key host checking&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;host_key_checking&lt;/STRONG&gt;&lt;STRONG&gt; = False&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 03:27:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/ansible-iosxe-modules-failed-to-execute-ansible-legacy-ios-facts/m-p/4908544#M3378</guid>
      <dc:creator>Netmart</dc:creator>
      <dc:date>2023-08-21T03:27:04Z</dc:date>
    </item>
  </channel>
</rss>

