{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3420","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3420/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3420/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3420/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/3420","id":188568148,"number":3420,"title":"Cannot pull facts over SSH with snmp_facts on ASA","user":{"login":"jean-christophe-manciot","id":13176858,"avatar_url":"https://avatars.githubusercontent.com/u/13176858?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-christophe-manciot","html_url":"https://github.com/jean-christophe-manciot","followers_url":"https://api.github.com/users/jean-christophe-manciot/followers","following_url":"https://api.github.com/users/jean-christophe-manciot/following{/other_user}","gists_url":"https://api.github.com/users/jean-christophe-manciot/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-christophe-manciot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-christophe-manciot/subscriptions","organizations_url":"https://api.github.com/users/jean-christophe-manciot/orgs","repos_url":"https://api.github.com/users/jean-christophe-manciot/repos","events_url":"https://api.github.com/users/jean-christophe-manciot/events{/privacy}","received_events_url":"https://api.github.com/users/jean-christophe-manciot/received_events","type":"User","site_admin":false},"labels":[{"id":454885841,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_2.3","name":"affects_2.3","color":"5319e7","default":false},{"id":132898023,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":265304236,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/networking","name":"networking","color":"c7def8","default":false},{"id":415779102,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-10T17:20:24Z","updated_at":"2016-11-16T14:07:46Z","closed_at":null,"body":"##### ISSUE TYPE\r\n- Bug Report\r\n##### COMPONENT NAME\r\n\r\nsnmp_facts\r\n##### ANSIBLE VERSION\r\n\r\n```\r\nansible --version\r\n2.3.0 (commit 20161110.abc9133)\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n##### CONFIGURATION\r\n\r\ninventory   = ./hosts\r\ngathering = explicit\r\nroles_path = /home/actionmystique/Program-Files/Ubuntu/Ansible/git-Ansible/Roles/roles\r\nprivate_role_vars = yes\r\nlog_path = /var/log/ansible.log\r\nfact_caching = redis\r\nfact_caching_timeout = 86400\r\nretry_files_enabled = False\r\n##### OS / ENVIRONMENT\r\n- **Local host**: Ubuntu 16.10 4.8\r\n- **Target nodes**: ASAv 9.5\r\n##### SUMMARY\r\n\r\nRunning snmp_facts on this particular type of target triggers a fatal error (Permission denied), whereas I can manually login into the target node with SSH or run snmp_facts without issue on IOSv targets.\r\nWe will continue to experience issues with this module as long as the API is not consistent with other networking modules (no provider, no ssh_keyfile, no password,...). Cf. the [provider proposal](https://github.com/ansible/ansible-modules-extras/issues/3176).\r\n##### STEPS TO REPRODUCE\r\n\r\n```\r\n- name: Fetching SNMPv{{ snmp.new_version }} facts from the remote node\r\n  snmp_facts:\r\n        community: \"{{ snmp.ssh.community }}\"\r\n        host: \"{{ snmp.ssh.host }}\"\r\n        version: \"{{ snmp.ssh.version }}\"\r\n  register: facts\r\n```\r\n##### EXPECTED RESULTS\r\n\r\nSuccessful snmp_facts\r\n##### ACTUAL RESULTS\r\n\r\n```\r\nfatal: [ASAv2]: UNREACHABLE! => {\"changed\": false, \"msg\": \"Failed to connect to the host via ssh: Permission denied (publickey,password).\\r\\n\", \"unreachable\": true}\r\n```\r\nDespite the fact that SNMP is configured on the target with the same community:\r\n```\r\nsh run | inc snmp   \r\n...\r\nsnmp-server host management 172.21.100.1 community ***** version 2c\r\nsnmp-server location California\r\nsnmp-server contact xxxxxxxxxxxxxxxx\r\nsnmp-server community *****\r\nsnmp-server enable traps syslog\r\n...\r\n```\r\nAlso:\r\n```\r\nssh admin@172.21.100.251\r\nType help or '?' for a list of available commands.\r\nASAv1> en\r\nPassword: **********\r\nASAv1# sh ver\r\n\r\nCisco Adaptive Security Appliance Software Version 9.5(2)204 \r\nDevice Manager Version 7.5(2)\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/260955078","html_url":"https://github.com/ansible/ansible-modules-extras/issues/3420#issuecomment-260955078","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3420","id":260955078,"user":{"login":"gundalow","id":940557,"avatar_url":"https://avatars.githubusercontent.com/u/940557?v=3","gravatar_id":"","url":"https://api.github.com/users/gundalow","html_url":"https://github.com/gundalow","followers_url":"https://api.github.com/users/gundalow/followers","following_url":"https://api.github.com/users/gundalow/following{/other_user}","gists_url":"https://api.github.com/users/gundalow/gists{/gist_id}","starred_url":"https://api.github.com/users/gundalow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gundalow/subscriptions","organizations_url":"https://api.github.com/users/gundalow/orgs","repos_url":"https://api.github.com/users/gundalow/repos","events_url":"https://api.github.com/users/gundalow/events{/privacy}","received_events_url":"https://api.github.com/users/gundalow/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T14:07:46Z","updated_at":"2016-11-16T14:07:46Z","body":"@privateip @Qalthos What do you think, is this something we can do?"}}
{"actor":{"display_login":"gundalow"}}