{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/12178","labels_url":"https://api.github.com/repos/ansible/ansible/issues/12178/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/12178/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/12178/events","html_url":"https://github.com/ansible/ansible/issues/12178","id":104220067,"number":12178,"title":"Filter plugins need to reside in dir beside your playbooks","user":{"login":"Tahvok","id":6513056,"avatar_url":"https://avatars.githubusercontent.com/u/6513056?v=3","gravatar_id":"","url":"https://api.github.com/users/Tahvok","html_url":"https://github.com/Tahvok","followers_url":"https://api.github.com/users/Tahvok/followers","following_url":"https://api.github.com/users/Tahvok/following{/other_user}","gists_url":"https://api.github.com/users/Tahvok/gists{/gist_id}","starred_url":"https://api.github.com/users/Tahvok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tahvok/subscriptions","organizations_url":"https://api.github.com/users/Tahvok/orgs","repos_url":"https://api.github.com/users/Tahvok/repos","events_url":"https://api.github.com/users/Tahvok/events{/privacy}","received_events_url":"https://api.github.com/users/Tahvok/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-01T09:05:09Z","updated_at":"2015-09-01T14:18:56Z","closed_at":"2015-09-01T09:55:39Z","body":"I'm not sure if it's a bug, maybe it should be like this.\r\nTested with ansible 1.9.2 and devel from 01-09-2015\r\n\r\nI **had** the following stucture on my machine with filter_plugins:\r\n\r\n~/ansible/\r\n```\r\n  group_vars/\r\n  host_vars/\r\n  hosts/\r\n  roles/\r\n  filter_plugins/\r\n  playbook1.yml\r\n  playbook2.yml\r\n```\r\n\r\nAs my ansible dir was started cluttering with playbooks, I moved them to different dirs such as 'playbooks' and 'tests':\r\n```\r\n  group_vars/\r\n  host_vars/\r\n  hosts/\r\n  roles/\r\n  filter_plugins/\r\n  playbooks/\r\n  tests/\r\n```\r\n\r\nHowever, running the playbooks resulted in errors such as this:\r\n```\r\n\"AnsibleError: ERROR! template error while templating string: no filter named 'split'\"\r\n```\r\n\r\nSo I put filter_plugins inside 'playbooks' dir, and everything went ok.\r\n\r\nSo is this expected behaviour? It means now that I need to copy my 'filter_plugins' dir to all my playbook dirs and make sure to keep them in sync."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/136736706","html_url":"https://github.com/ansible/ansible/issues/12178#issuecomment-136736706","issue_url":"https://api.github.com/repos/ansible/ansible/issues/12178","id":136736706,"user":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T14:18:56Z","updated_at":"2015-09-01T14:18:56Z","body":"also you can put them inside roles, which makes it easier to move around"}}