[ansible-project] Execute the ipaddr filter after installation

2019-05-14 Thread David Rojas
You are installing it on the target device but it needs to be installed on the 
absolve engine node basically where you are running your playbook from. Just do 
a pip install for that module once then rerun your playbook but take out that 
pip install not needed on your target 

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/22155c51-57dd-436c-ae5e-52e80f61ab63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Execute the ipaddr filter after installation

2019-05-14 Thread Evgeniy Ivanov
Hi there, 

I've got a problem with the ipaddr filter. It doesn't seem to be loaded 
after installed in the same playbook:

example:

- pip: name=netaddr state=latest

- debug: msg="{{ '192.0.2.0' | ipaddr }}"

gives an error:

TASK [debug] 
>> ***
>
> fatal: [localhost]: FAILED! => {"msg": "The ipaddr filter requires 
>> python-netaddr be installed on the ansible controller"}
>
>
It seems that netaddr  should be in the system before evoking ansible.

Is there any workaround to load the filter in the same playbook?

Thanks!

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/49bc5af7-321a-4e98-8b9f-27ddd45c0e85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.