diff --git a/Ansible/plugin_devel.md b/Ansible/plugin_devel.md new file mode 100644 index 0000000..5184c0d --- /dev/null +++ b/Ansible/plugin_devel.md @@ -0,0 +1,23 @@ +# Plugin development + +## Filter example + +``` +from __future__ import (absolute_import, division, print_function) + +# Some more imports + +__metaclass__ = type + + +def myfilter(myinput): + return myinput + 1 + + +class FilterModule(object): + + def filters(self): + return { + 'myfilter': myfilter, + } +``` \ No newline at end of file