Closed rsk closed 5 years ago
Currently you can use --extra-deps
to include both files and folders and it copies it recursively.
In your case, you can run:
$ bundle-playbook --playbook-file=test_ansible.yml \
--extra-deps=filter_plugins
Let me know if it works.
@kriansa it works like a charm. Thank you.
@kriansa one more question before you close this issue. What if i want multiple folders inside extra-deps ? how do i do that ?
ansible playbooks often include multiple filter plugins for example: there can be filter_plugins, callback_plugins etc.,
here is an example playbook that includes a filter_plugin the following is the folder structure.
code for test_filter.py The functionality of this filter is to append "something" sting to any value that is passed to filter
the playbook is as follows:
The following is the usage of the playbook:
Currently when i bundle this playbook through bundle-playbook. There is option to include folders into the bundle. for example if we could add multiple folders(filter_plugins, callback_plugins via) to the bundle-playbook it would unlock potential of bundling customized playbooks.
example usage would be :
This will help us including many kinds of folders/files that can be helpful in the playbook run.