Skip to content

Instantly share code, notes, and snippets.

@zshamrock
Last active November 28, 2015 17:05
Show Gist options
  • Save zshamrock/1e4fae122427f107f710 to your computer and use it in GitHub Desktop.
Save zshamrock/1e4fae122427f107f710 to your computer and use it in GitHub Desktop.
ansible-apt-deb-issue-steps
---
- name: download deb packages from the web
get_url: url={{ item.url }} dest=/tmp/{{ item.name }} force=no
with_items:
- { url: "http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb", name: "viber.deb" }
- { url: "https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-1.2.6-amd64.deb", name: "slack.deb" }
- name: install downloaded deb packages
become: yes
apt: deb=/tmp/{{ item }}.deb state=present
with_items:
- viber
- slack
And it fails with:
TASK: [local | install downloaded deb packages] *******************************
failed: [127.0.0.1] => (item=viber,slack) => {"failed": true, "item": "viber,slack"}
msg: Unable to install package: E:Could not open file /tmp/viber - open (2: No such file or directory), E:Unable to determine file size for fd -1 - fstat (9: Bad file descriptor), E:Read error - read (9: Bad file descriptor)
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/alex/site.retry
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment