# Community mail module not working

**URL:** <https://forum.ansible.com/t/community-mail-module-not-working/36847>\
**Category:** Ansible Project\
**Tags:** ubuntu, galaxy-ng\
**Created:** [July 13, 2022, 11:49pm UTC](https://forum.ansible.com/t/community-mail-module-not-working/36847 "2022-07-13T23:49:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Machin](https://avatars.discourse-cdn.com/v4/letter/g/e5b9ba/32.png) [@Gregory\_Machin](https://forum.ansible.com/u/Gregory_Machin)\
**Post date:** [July 13, 2022, 11:49pm UTC](https://forum.ansible.com/t/community-mail-module-not-working/36847/1 "2022-07-13T23:49:57Z")

</div>

Hi,  
I’m running Ansible --version

ansible 2.10.8  
config file = /etc/ansible/ansible.cfg  
configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python3/dist-packages/ansible  
executable location = /usr/bin/ansible  
python version = 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0]  
root@ansible:/etc/ansible#

on Ubuntu 22.04

I installed the community.general collection using :  
ansible-galaxy collection install community.general

and I’m getting the following:  
[WARNING]: Collection community.general does not support Ansible version 2.10.8

which doesn’t makes sense because the install page says “Installing collections with ansible-galaxy is only supported in ansible 2.9+” but my ansible version is 2.10.8 so why the warning ?

when it mail module is called in the play book I get :  
fatal: [server1]: FAILED! =\> {“msg”: “The module mail was redirected to community.general.notification.mail, which could not be loaded.”}  
fatal: [server2]: FAILED! =\> {“msg”: “The module mail was redirected to community.general.notification.mail, which could not be loaded.”}  
fatal: [server3]: FAILED! =\> {“msg”: “The module mail was redirected to community.general.notification.mail, which could not be loaded.”

given the warning this is not a surprise…

How do I get the mail module to work with my current version of Ansible ?

G

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [July 14, 2022, 4:23am UTC](https://forum.ansible.com/t/community-mail-module-not-working/36847/2 "2022-07-14T04:23:46Z")

</div>

Hi,

> I'm running Ansible --version
> 
> ansible 2.10.8

please note that ansible-base 2.10 is End of Life since May 2022. We  
suggest to upgrade to ansible-core (2.11 or later).

> I installed the community.general collection using :  
> ansible-galaxy collection install community.general
> 
> and I'm getting the following:  
> [WARNING]: Collection community.general does not support Ansible  
> version 2.10.8
> 
> which doesn't makes sense because the install page says "Installing  
> collections with ansible-galaxy is only supported in ansible 2.9+"  
> but my ansible version is 2.10.8 so why the warning ?

The README of community.general clearly states that ansible-base 2.10  
is no longer supported with community.general 5.0.0+:

[https://galaxy.ansible.com/community/general](https://galaxy.ansible.com/community/general)

"Tested with the current ansible-core 2.11, ansible-core 2.12,  
ansible-core 2.13 releases and the current development version of  
ansible-core. Ansible-core versions before 2.11.0 are not supported.  
This includes all ansible-base 2.10 and Ansible 2.9 releases."

So you should install community.general \< 5.0.0 if you insist working  
with ansible-base 2.10.
