Failed module mail

141 views
Skip to first unread message

Abel Laime

unread,
Sep 1, 2022, 10:41:26 AM9/1/22
to AWX Project
"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
        to: Adam Shields <xx...@xxxx.com>
        subject: Overview of the changes
        body: 'Change 1205 is live.'

I install requirements.yml
Example:
requirements.yml

collections:

# Install ansible.posix Ansible Collection

- name: community.windows


- name: community.general


- name: ansible.windows




AWX Project

unread,
Sep 2, 2022, 1:12:15 PM9/2/22
to AWX Project
where did you place that requirements file? should be in the collections/requirements.yml

Does your playbook work outside of AWX (i.e. just running ansible in a terminal)

AWX Team

Abel Laime

unread,
Sep 5, 2022, 7:58:18 AM9/5/22
to AWX Project
Yes,
Captura.PNG

Abel Laime

unread,
Sep 6, 2022, 10:31:37 AM9/6/22
to AWX Project
it's solved! =)

I add:

- name: Mail
      mail:
        host: server.com
        port: XXX
        username: XXXXXXXX
        password: XXXXXXXXXX
        to: Adam Shields <xx...@xxxx.com>
        subject: Overview of the changes
        body: 'Change 1205 is live.
delegate_to: localhost 

it works fine 

Reply all
Reply to author
Forward
0 new messages