{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/18901","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/18901/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/18901/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/18901/events","html_url":"https://github.com/ansible/ansible/issues/18901","id":194133223,"number":18901,"title":"apt module does not install deb from files/","user":{"login":"teresaejunior","id":3650039,"avatar_url":"https://avatars.githubusercontent.com/u/3650039?v=3","gravatar_id":"","url":"https://api.github.com/users/teresaejunior","html_url":"https://github.com/teresaejunior","followers_url":"https://api.github.com/users/teresaejunior/followers","following_url":"https://api.github.com/users/teresaejunior/following{/other_user}","gists_url":"https://api.github.com/users/teresaejunior/gists{/gist_id}","starred_url":"https://api.github.com/users/teresaejunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teresaejunior/subscriptions","organizations_url":"https://api.github.com/users/teresaejunior/orgs","repos_url":"https://api.github.com/users/teresaejunior/repos","events_url":"https://api.github.com/users/teresaejunior/events{/privacy}","received_events_url":"https://api.github.com/users/teresaejunior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T18:44:59Z","updated_at":"2016-12-07T18:44:59Z","closed_at":null,"body":"_From @teresaejunior on August 27, 2016 23:10_\n\n<!--- Verify first that your issue/request is not already reported in GitHub -->\n##### ISSUE TYPE\n\n<!--- Pick one below and delete the rest: -->\n- Bug Report\n##### COMPONENT NAME\n\napt\n##### ANSIBLE VERSION\n\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\n\n```\nansible 2.1.1.0\n  config file = /home/teresaejunior/system/ansible.cfg\n  configured module search path = Default w/o overrides\n```\n##### CONFIGURATION\n\n```\n[privilege_escalation]\nbecome = True\n```\n##### OS / ENVIRONMENT\n\nXubuntu 16.04 with Linux 4.6-4.dmz.3-liquorix-amd64\n##### SUMMARY\n\nThe convention from other core modules, like copy, unarchive and script, is to find role files under the files/ directory. The apt module does not search for file under files/, though.\n##### STEPS TO REPRODUCE\n\n<!---\nFor bugs, show exactly how to reproduce the problem.\nFor new features, show how the feature would be used.\n-->\n\n<!--- Paste example playbooks or commands between quotes below -->\n\n```\n- apt: deb=files/google-earth-stable_7.1.4.1529-r0_amd64.deb\n```\n\n<!--- You can also paste gist.github.com links for larger files -->\n##### EXPECTED RESULTS\n\n<!--- What did you expect to happen when running the steps above? -->\n\n`files/google-earth-stable_7.1.4.1529-r0_amd64.deb` should be installed\n##### ACTUAL RESULTS\n\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\n\nIt says \"file or directory not found\".\n\n<!--- Paste verbatim command output between quotes below -->\n\n```\nTASK [earth : install google-earth-stable] *************************************\ntask path: /home/teresaejunior/system-test/earth/tasks/main.yml:25\n<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: teresaejunior\n<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1472339216.81-203435995230828 `\" && echo ansible-tmp-1472339216.81-203435995230828=\"` echo $HOME/.ansible/tmp/ansible-tmp-1472339216.81-203435995230828 `\" ) && sleep 0'\n<127.0.0.1> PUT /tmp/tmpbLER8k TO /home/teresaejunior/.ansible/tmp/ansible-tmp-1472339216.81-203435995230828/apt\n<127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '\"'\"'echo BECOME-SUCCESS-tmqwrwbbslflzilydplhrasyhjuszxof; LANG=pt_BR.UTF-8 LC_ALL=pt_BR.UTF-8 LC_MESSAGES=pt_BR.UTF-8 /usr/bin/python /home/teresaejunior/.ansible/tmp/ansible-tmp-1472339216.81-203435995230828/apt; rm -rf \"/home/teresaejunior/.ansible/tmp/ansible-tmp-1472339216.81-203435995230828/\" > /dev/null 2>&1'\"'\"' && sleep 0'\nfatal: [localhost]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"allow_unauthenticated\": false, \"autoremove\": false, \"cache_valid_time\": null, \"deb\": \"files/google-earth-stable_7.1.4.1529-r0_amd64.deb\", \"default_release\": null, \"dpkg_options\": \"force-confdef,force-confold\", \"force\": false, \"install_recommends\": null, \"only_upgrade\": false, \"package\": null, \"purge\": false, \"state\": \"present\", \"update_cache\": false, \"upgrade\": null}, \"module_name\": \"apt\"}, \"msg\": \"Unable to install package: E:Não foi possível abrir arquivo files/google-earth-stable_7.1.4.1529-r0_amd64.deb - open (2: Arquivo ou diretório não encontrado)\"}\n```\n\n\n_Copied from original issue: ansible/ansible-modules-core#4584_"}}
{"actor":{"display_login":"teresaejunior"}}