I am trying to write a ansible action plugin. The reason i am doing this is, I want to access my variables available in playbook (modules can only deal with args as far i understand, please correct me if i am wrong )
Now writing this plugin, what is the directory structure i should have? i tried (action_plugins/, library/, tests/ ) , library/action_plugins, tests/ ) they don't work.
The moment i start using the 2nd dir structure all the imports fail, first one does not work at all.
But does not discuss about the dir structure.
I am planning to use this plugin by putting this into requirements.yml and installing it in the playbook. Can any one suggest what i am doing wrong.
(Ansible versions 1.9, i cannot really upgrade it.)