[admin@localhost Ansible-NXOS]$ ansible-playbook -i hosts site.yml -vvv
ansible-playbook [core 2.21.0]
config file = /home/admin/Playbooks/Ansible-NXOS/ansible.cfg
configured module search path = ['/home/admin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
ansible collection location = /home/admin/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible-playbook
python version = 3.12.13 (main, Apr 16 2026, 00:00:00) [GCC 14.3.1 20251022 (Red Hat 14.3.1-4)] (/usr/bin/python3)
jinja version = 3.1.6
pyyaml version = 6.0.1 (with libyaml v0.2.5)
Using /home/admin/Playbooks/Ansible-NXOS/ansible.cfg as config file
host_list declined parsing /home/admin/Playbooks/Ansible-NXOS/hosts as it did not pass its verify_file() method
script declined parsing /home/admin/Playbooks/Ansible-NXOS/hosts as it did not pass its verify_file() method
auto declined parsing /home/admin/Playbooks/Ansible-NXOS/hosts as it did not pass its verify_file() method
Parsed /home/admin/Playbooks/Ansible-NXOS/hosts inventory source with ini plugin
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: site.yml ********************************************************************************************************************
2 plays in site.yml
PLAY [spine] **************************************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************
task path: /home/admin/Playbooks/Ansible-NXOS/site.yml:4
redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi
redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi
redirecting (type: httpapi) ansible.builtin.nxos to cisco.nxos.nxos
redirecting (type: httpapi) ansible.builtin.nxos to cisco.nxos.nxos
redirecting (type: modules) ansible.builtin.nxos_facts to cisco.nxos.nxos_facts
<10.202.32.111> ESTABLISH LOCAL CONNECTION FOR USER: admin
<10.202.32.111> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e `"&& mkdir "` echo /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.841656-26708-73467771251708 `" && echo ansible-tmp-1781670901.841656-26708-73467771251708="` echo /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.841656-26708-73467771251708 `" )'
redirecting (type: modules) ansible.builtin.nxos_facts to cisco.nxos.nxos_facts
<10.202.32.112> ESTABLISH LOCAL CONNECTION FOR USER: admin
<10.202.32.112> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e `"&& mkdir "` echo /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.8563075-26709-225276323680481 `" && echo ansible-tmp-1781670901.8563075-26709-225276323680481="` echo /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.8563075-26709-225276323680481 `" )'
redirecting (type: modules) ansible.builtin.nxos_facts to cisco.nxos.nxos_facts
redirecting (type: modules) ansible.builtin.nxos_facts to cisco.nxos.nxos_facts
Using module file /usr/local/lib/python3.12/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_facts.py
<10.202.32.111> PUT /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/tmpuw8_5z6p TO /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.841656-26708-73467771251708/AnsiballZ_nxos_facts.py
<10.202.32.111> EXEC /bin/sh -c 'chmod u+rwx /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.841656-26708-73467771251708/ /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.841656-26708-73467771251708/AnsiballZ_nxos_facts.py'
Using module file /usr/local/lib/python3.12/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_facts.py
<10.202.32.112> PUT /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/tmp124e0zc5 TO /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.8563075-26709-225276323680481/AnsiballZ_nxos_facts.py
<10.202.32.112> EXEC /bin/sh -c 'chmod u+rwx /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.8563075-26709-225276323680481/ /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.8563075-26709-225276323680481/AnsiballZ_nxos_facts.py'
<10.202.32.111> EXEC /bin/sh -c '/usr/bin/python3 /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.841656-26708-73467771251708/AnsiballZ_nxos_facts.py'
<10.202.32.112> EXEC /bin/sh -c '/usr/bin/python3 /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.8563075-26709-225276323680481/AnsiballZ_nxos_facts.py'
<10.202.32.112> EXEC /bin/sh -c 'rm -f -r /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.8563075-26709-225276323680481/ > /dev/null 2>&1'
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: Importing 'to_text' from 'ansible.module_utils._text' is deprecated. This feature will be removed from ansible-core version 2.24. Use ansible.module_utils.common.text.converters instead.
[ERROR]: Task failed: Action failed: The following modules failed to execute: ansible.legacy.nxos_facts.
Task failed: Action failed.
<<< caused by >>>
The following modules failed to execute: ansible.legacy.nxos_facts.
+--[ Sub-Event 1 of 1 ]---
|
| Could not connect to https://10.202.32.112:443/ins: [Errno 111] 연결이 거부됨
|
+--[ End Sub-Event ]---
fatal: [10.202.32.112]: FAILED! => {
"ansible_facts": {},
"changed": false,
"failed_modules": {
"ansible.legacy.nxos_facts": {
"changed": false,
"deprecations": [
{
"collection_name": "ansible.builtin",
"deprecator": {
"resolved_name": "ansible.builtin",
"type": null
},
"msg": "Importing 'to_text' from 'ansible.module_utils._text' is deprecated.",
"version": "2.24"
}
],
"exception": "(traceback unavailable)",
"failed": true,
"warnings": []
}
},
"msg": "The following modules failed to execute: ansible.legacy.nxos_facts."
}
<10.202.32.111> EXEC /bin/sh -c 'rm -f -r /home/admin/.ansible/tmp/ansible-local-26703hyegwp_e/ansible-tmp-1781670901.841656-26708-73467771251708/ > /dev/null 2>&1'
[ERROR]: Task failed: Action failed: The following modules failed to execute: ansible.legacy.nxos_facts.
Task failed: Action failed.
<<< caused by >>>
The following modules failed to execute: ansible.legacy.nxos_facts.
+--[ Sub-Event 1 of 1 ]---
|
| Could not connect to https://10.202.32.111:443/ins: [Errno 111] 연결이 거부됨
|
+--[ End Sub-Event ]---
fatal: [10.202.32.111]: FAILED! => {
"ansible_facts": {},
"changed": false,
"failed_modules": {
"ansible.legacy.nxos_facts": {
"changed": false,
"deprecations": [
{
"collection_name": "ansible.builtin",
"deprecator": {
"resolved_name": "ansible.builtin",
"type": null
},
"msg": "Importing 'to_text' from 'ansible.module_utils._text' is deprecated.",
"version": "2.24"
}
],
"exception": "(traceback unavailable)",
"failed": true,
"warnings": []
}
},
"msg": "The following modules failed to execute: ansible.legacy.nxos_facts."
}
PLAY RECAP ****************************************************************************************************************************
10.202.32.111 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
10.202.32.112 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
[admin@localhost Ansible-NXOS]$