We have installed this mail module in the EE container but still I am facing the issue. Please check the below error once.
Command:- ansible localhost -m mail -a 'subject: test
Error:- [ WARNING]: No inventory was parsed, only Implicit localhost is available
ERROR! this task ‘mail’ has extra params, which is only allowed in the following modules: ansible.legacy.command, ansible.builtin.include_tasks, ansible.legacy.include tasks, ansible.legacy.meta, neta, le.builtin.shell, ansible.legacy.script, ansible.legacy.raw, ansible.builtin.raw, ansible.legacy.add_host, ansible.builtin.include, ansible.builtin.include_vars, group by, import tasks, ansible.builtim role, ansible.builtin.group_by, ansible.builtin.include_role, ansible.legacy.import_role, script, ansible.builtin.win_command, ansible.legacy.import_tasks, ansible.legacy.win_shell, ansible.windows. міли ansible.builtin.command, import_role, ansible.builtin.meta, ansible.legacy.win_command, ansible. legacy, include, ansible.windows.win_command, ansible.builtin.import_tasks, include tasks, zaw, ansible.le sible.builtin.add_host, ansible.builtin.import_role, include_vars, add host, ansible.legacy.group_by, ansible.legacy.include_vars, ansible.legacy.include_zole, ansible.legacy.shell, shell, win_command,
win_shell, set_fact, command, ansible.builtin.set_fact