Found the following: https://github.com/bcoca/local_backup and trying to use it and I’m still quite new at this and probably doing something very obvious wrong.
First tried to use ansible-galaxy install and that failed since it says that it doesn’t have a meta/main.yml file
Then I just created a local role with the content of the git repo and now I’m getting this error:
File “/home/ubuntu/git/aws-efs/ansible/roles/local_backup/action_plugins/normal.py”, line 8, in
from ansible.module_utils.backup import local_backup
ModuleNotFoundError: No module named ‘ansible.module_utils.backup’
I wrote that as an example, which is why i didn't make it a 'full
role' nor publish it into galaxy.
Backup policies vary a LOT by context, that just shows one way to do
this and you are free to use it a s a reference, but it was never
something for production use.
I understand that it has never graduated to production use, and maybe my issue is that I’m pretty new at Ansible, but if it is not a full role and not published in Galaxy, is there any way to still deploy it or I should just get the whole thing and treat it as a private role in order to use it.
and when I run it, I get the following error:
Unexpected failure during module execution: No module named ‘ansible.module_utils.backup’
with trace of:
File “/home/ubuntu/git/aws-efs/ansible/roles/local_backup/action_plugins/normal.py”, line 8, in
from ansible.module_utils.backup import local_backup
Why is it complaining that it can’t find the module
I have tested with the provided test play and it worked as expected. So wondering if it is related to path or something. Tried with one almost like the test and no error but no “controller_backup” in the copy return value.