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.

On Tuesday, January 19, 2016, Bob Nuggett <[email protected]> wrote:

> 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)
>
>
>
>
>
>
> --
> 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 [email protected]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a7d1ac18-8ebb-434d-97a1-9cc84ce3f610%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a7d1ac18-8ebb-434d-97a1-9cc84ce3f610%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v8VY9AMMvUThCvWa_LOt9fEnaf9w49w7FioyqC5Kfey2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to