0

I'm running an ansible playbook on my machine, and every task completes successfully except for several steps that involve unpacking various zip and tar.gz archives into /usr/local/lib. Here's an example of such an error message:

TASK: [sd_dev | Unpack /usr/local/lib/eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz] ***
failed: [localhost] => {"failed": true}
msg: dest '/usr/local/lib' must be an existing dir
...ignoring

I can't figure out why this happens because manually running the command works fine. Is it possible this is related to sudo permissions (I was prompted for my sudo password when running the playbook). Any ideas what could be going wrong?

jonderry
  • 197
  • 4
  • 13
  • 1
    Have you tried a `file` task to ensure `/usr/local/lib` exists as a directory first? Seems like a pretty clear error message... – ceejayoz Oct 16 '14 at 18:13
  • The directory exists (see the last part of the question where I mentioned that unpacking works fine on the command line). – jonderry Oct 16 '14 at 20:07
  • 2
    run with `-vvv` to see a lot more details about what's happening. – Mxx Oct 17 '14 at 05:08

1 Answers1

1

This appears to be an ansible bug. You will probably be able to work around it if you read the ticket.

Antonis Christofides
  • 2,598
  • 2
  • 23
  • 35