debops / ansible-fail2ban

Install and configure fail2ban service
GNU General Public License v3.0
38 stars 15 forks source link

lookup plugin (template_src) not found #2

Closed moemen closed 8 years ago

moemen commented 8 years ago

I'm using debops.fail2ban role alone, and it gives me this error:

fatal: [default] => Failed to template {{ lookup("template_src", "etc/fail2ban/fail2ban.local.j2") }}: lookup plugin (template_src) not found

FATAL: all hosts have already failed -- aborting

I'm using ansible 1.9.1

drybjed commented 8 years ago

You need a custom Ansible lookup plugin, available here.

moemen commented 8 years ago

:+1: I got it. Thanks :smile:

jlerbsc commented 7 years ago

Hi, How to install it? and why is not it installed automatically?

drybjed commented 7 years ago

@jlerbsc The plugins are available in the debops-playbooks repository, they are not included with Ansible. If you use debops-playbooks repository, they are provided automatically; if not, you need to care of that manually.

jlerbsc commented 7 years ago

Thanks for your response, I have cloned debops-playbooks repository.Is there a path to setup to use theses python scripts from another playbook? I try to setup PYTHONPATH but i have always error "lookup plugin (template_src) not found".

drybjed commented 7 years ago

You usually put them where the lookup_plugins configuration parameter in ansible.cfg points to.