problem z konfiguracja Ansible
: 16 lut 2022, 21:01
Witam,
Probuje zbudować Ansible do użytku w labie. Ping działa:
ansible@automation-srv:/etc/ansible$ ansible -m ping all
192.168.0.39 | SUCCESS => {
"changed": false,
"ping": "pong"
}
192.168.0.38 | SUCCESS => {
"changed": false,
"ping": "pong"
}
192.168.0.40 | SUCCESS => {
"changed": false,
"ping": "pong"
}
problem jest tutaj:
ansible@automation-srv:/etc/ansible$ ansible-playbook test.yml
PLAY [Test Ansible commands] ********************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************************
[WARNING]: Ignoring timeout(10) for ansible.legacy.iosxr_facts
[WARNING]: Ignoring timeout(10) for ansible.legacy.ios_facts
[WARNING]: Ignoring timeout(10) for ansible.legacy.nxos_facts
fatal: [192.168.0.39]: FAILED! => {"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": ["!config"], "provider": null}}, "msg": "[Errno 21] Is a directory: '/home/ansible/.ssh'"}}, "msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"}
fatal: [192.168.0.38]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.iosxr_facts": {"failed": true, "invocation": {"module_args": {"available_network_resources": false, "gather_network_resources": null, "gather_subset": ["!config"], "provider": null}}, "msg": "[Errno 21] Is a directory: '/home/ansible/.ssh'"}}, "msg": "The following modules failed to execute: ansible.legacy.iosxr_facts\n"}
fatal: [192.168.0.40]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.nxos_facts": {"failed": true, "invocation": {"module_args": {"available_network_resources": false, "gather_network_resources": null, "gather_subset": ["!config"], "provider": null}}, "msg": "[Errno 21] Is a directory: '/home/ansible/.ssh'"}}, "msg": "The following modules failed to execute: ansible.legacy.nxos_facts\n"}
PLAY RECAP **************************************************************************************************************************************************************************
192.168.0.38 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
192.168.0.39 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
192.168.0.40 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
dodam ze SSH z urządzenia działa.
Proszę o opinie.
Probuje zbudować Ansible do użytku w labie. Ping działa:
ansible@automation-srv:/etc/ansible$ ansible -m ping all
192.168.0.39 | SUCCESS => {
"changed": false,
"ping": "pong"
}
192.168.0.38 | SUCCESS => {
"changed": false,
"ping": "pong"
}
192.168.0.40 | SUCCESS => {
"changed": false,
"ping": "pong"
}
problem jest tutaj:
ansible@automation-srv:/etc/ansible$ ansible-playbook test.yml
PLAY [Test Ansible commands] ********************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************************
[WARNING]: Ignoring timeout(10) for ansible.legacy.iosxr_facts
[WARNING]: Ignoring timeout(10) for ansible.legacy.ios_facts
[WARNING]: Ignoring timeout(10) for ansible.legacy.nxos_facts
fatal: [192.168.0.39]: FAILED! => {"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": ["!config"], "provider": null}}, "msg": "[Errno 21] Is a directory: '/home/ansible/.ssh'"}}, "msg": "The following modules failed to execute: ansible.legacy.ios_facts\n"}
fatal: [192.168.0.38]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.iosxr_facts": {"failed": true, "invocation": {"module_args": {"available_network_resources": false, "gather_network_resources": null, "gather_subset": ["!config"], "provider": null}}, "msg": "[Errno 21] Is a directory: '/home/ansible/.ssh'"}}, "msg": "The following modules failed to execute: ansible.legacy.iosxr_facts\n"}
fatal: [192.168.0.40]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.nxos_facts": {"failed": true, "invocation": {"module_args": {"available_network_resources": false, "gather_network_resources": null, "gather_subset": ["!config"], "provider": null}}, "msg": "[Errno 21] Is a directory: '/home/ansible/.ssh'"}}, "msg": "The following modules failed to execute: ansible.legacy.nxos_facts\n"}
PLAY RECAP **************************************************************************************************************************************************************************
192.168.0.38 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
192.168.0.39 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
192.168.0.40 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
dodam ze SSH z urządzenia działa.
Proszę o opinie.