I have done that but I'm getting an issue.
I have:
roles/local_backup/
├── action_plugins
│ ├── __pycache__
│ │ └── normal.cpython-310.pyc
│ ├── copy.py
│ └── normal.py
└── module_utils
├── __init__.py
└── backup.py
and in my playbook:
name: Config Environment to host IRIS
hosts: "{{ var_host | default('all !disabled') }}"
environment:
ANSIBLE_LOCAL_BACKUP: "{{ app_root }}/ansible/backups"
ANSIBLE_REMOTE_BACKUP_CLEANUP: true
roles:
- local_backup
tasks:
- name: Create/Update instance environment
include_role:
name: env_config
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 <module>
from ansible.module_utils.backup import local_backup
Why is it complaining that it can't find the module
Thanks
Alain