“The module mail was redirected to community.general.notification.mail, which could not be loaded.”
code:
- name: Mail
mail:
host: server.com
port: XXX
username: XXXXXXXX
password: XXXXXXXXXX
body: ‘Change 1205 is live.’
“The module mail was redirected to community.general.notification.mail, which could not be loaded.”
code:
Hi,
did you install the community.general collection?
Cheers,
Felix
Yes.
I install contains collector.
Example:
requirements.yml
collections:
source: https://galaxy.ansible.com
source: https://galaxy.ansible.com
source: https://galaxy.ansible.com
it’s solved! =)
I add:
delegate_to: localhost
it works fine
https://github.com/ansible-collections/community.general/issues/4943