Error executing maven_artifact plugin

200 views
Skip to first unread message

Bob Nuggett

unread,
Jan 19, 2016, 8:31:26 AM1/19/16
to Ansible Project
I get the following error when trying to execute the maven_artifact plugin


fatal
: [172.28.128.6]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1453190793.13-232530634322851/maven_artifact\", line 25, in <module>\r\n    from lxml import etree\r\nImportError: No module named lxml\r\n", "msg": "MODULE FAILURE", "parsed": false}

I have followed the instructions at: http://lxml.de/installation.html
I have also followed the instructions at: http://stackoverflow.com/questions/6504810/how-to-install-lxml-on-ubuntu

But the module is still not found.

What am I doing wrong?

Here's my environment:
uname -a
Linux vagrant-ubuntu-trusty-64 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ ansible --version
ansible
2.0.0.1
  config file
= /home/vagrant/project/ansible.cfg
  configured
module search path = Default w/o overrides

$ pip list | grep lxml
lxml
(3.3.3)






Matt Martz

unread,
Jan 19, 2016, 8:51:12 AM1/19/16
to ansible...@googlegroups.com
lxml needs to be installed on the remote target device where the task is executing, not on the local control machine (unless they are one in the same)

I suggest adding a task that will install lxml via the pip module before executing any tasks that require it.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a7d1ac18-8ebb-434d-97a1-9cc84ce3f610%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Reply all
Reply to author
Forward
0 new messages