Enable and configure Email notification in awx 20

Hi Team

I enabled Email notification in awx console but when I tried to send test notification, it failed and found error “no route to host”. Please provide if any document to configure and enable the Email notification in awx 20 is much appreciated

You can exec into the task container with “kubectl exec -it deploy/awx -c awx-task – bash” and attempt to make a connection to your email server. If the connection fails there, then you’ll know this is an environment configuration issue (i.e. ports/routes, etc)

see https://docs.ansible.com/automation-controller/latest/html/userguide/notifications.html#email for more info

AWX Team

Hi AWX Team

In awx-ee, awx-web and awx-task we don’t have mail client pkg(postfix) installed and configured. How can we install and configure the postfix mail client in awx deployment.

Hi Ahil,

If you want to have some package installed in your EE, then i will advice you to prepare a new customized EE via ansible-builder to install additional packages i.e. postfix. And use that EE to run your jobs.

AWX Team please correct me if I have understood wrong.

Regards,
Ankit Pandey

Yes Ankit

But in Prd, we are not allowed to pull the customized images from docker or any other public repo’s. That’s the reason I need to customize the running awx-ee by using awx deployment what we did for hostalias. or else I need to customized the awx yaml file to build the awx deployment for installing and mapping the configuration files from scratch.
Below I need to customized the awx yaml

  1. Installing required pkgs
  2. mapping any configuration files(like /etc/tower/conf/custom.py and /etc/postfix/main.cf)

Please provide me the crystal clear steps

I wrote a blog a while back. May help. Some steps can be omitted like the last few. Hope It helps
http://weiyentan.github.io/2021/creating-execution-environments/

Hi Ahil,

I don’t think without building image you can achieve that, If you don’t have any image registry access, then try to atleast build it locally and set the ’ image_pull_policy’ as never.
I hope it will work for you. Take help from this link https://github.com/ansible/awx-operator/blob/devel/config/crd/bases/awx.ansible.com_awxs.yaml
to set image path and all.

Thanks & Regards,
Ankit Pandey

If you are using a Kubernetes version like k3s you can import tar.gz files in as images in a manifest file.

Hi Team

Can you elaborate how to create a custom EE, I am not familiar with ansible-builder so I’m a bit confused about how to create the custom EE. My requirement, need to enable email notification that’s it