Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

apt module does not install deb from files/ #4584

Closed
admirabilis opened this issue Aug 27, 2016 · 8 comments
Closed

apt module does not install deb from files/ #4584

admirabilis opened this issue Aug 27, 2016 · 8 comments

Comments

@admirabilis
Copy link

ISSUE TYPE
  • Bug Report
COMPONENT NAME

apt

ANSIBLE VERSION
ansible 2.1.1.0
  config file = /home/teresaejunior/system/ansible.cfg
  configured module search path = Default w/o overrides
CONFIGURATION
[privilege_escalation]
become = True
OS / ENVIRONMENT

Xubuntu 16.04 with Linux 4.6-4.dmz.3-liquorix-amd64

SUMMARY

The 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.

STEPS TO REPRODUCE
- apt: deb=files/google-earth-stable_7.1.4.1529-r0_amd64.deb
EXPECTED RESULTS

files/google-earth-stable_7.1.4.1529-r0_amd64.deb should be installed

ACTUAL RESULTS

It says "file or directory not found".

TASK [earth : install google-earth-stable] *************************************
task path: /home/teresaejunior/system-test/earth/tasks/main.yml:25
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: teresaejunior
<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'
<127.0.0.1> PUT /tmp/tmpbLER8k TO /home/teresaejunior/.ansible/tmp/ansible-tmp-1472339216.81-203435995230828/apt
<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'
fatal: [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)"}
@ansibot
Copy link

ansibot commented Aug 27, 2016

@ansible ping, this issue is waiting for your response.
click here for bot help

@ansibot
Copy link

ansibot commented Sep 12, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

3 similar comments
@ansibot
Copy link

ansibot commented Oct 5, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Oct 21, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Nov 6, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Nov 22, 2016

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Dec 7, 2016

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.

@admirabilis
Copy link
Author

This issue was moved to ansible/ansible#18901

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants