Regarding Notification playbook

Hi Team,

I need help to configure the new notification playbook.
Already i written the play book and which i am getting the error,Can you have a look on it please.

any luck on this please

Hello,

Hello, we’d love to help, but we need a little more information about the problem you’re having. Can you send us the error you are getting when running ansible-playbook?

-The AWX Team

did you try AWX built in notification?

вторник, 14 июня 2022 г. в 15:58:05 UTC+3, AWX Project:

The full traceback is:

152
Traceback (most recent call last):

153
File “/home/ansible/.ansible/tmp/ansible-tmp-1655187215.9642656-57-263527928933014/AnsiballZ_notification_template.py”, line 100, in

154
_ansiballz_main()

155
File “/home/ansible/.ansible/tmp/ansible-tmp-1655187215.9642656-57-263527928933014/AnsiballZ_notification_template.py”, line 92, in _ansiballz_main

156
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)

157
File “/home/ansible/.ansible/tmp/ansible-tmp-1655187215.9642656-57-263527928933014/AnsiballZ_notification_template.py”, line 41, in invoke_module

158
run_name=‘main’, alter_sys=True)

159
File “/usr/lib64/python2.7/runpy.py”, line 176, in run_module

160
fname, loader, pkg_name)

161
File “/usr/lib64/python2.7/runpy.py”, line 82, in _run_module_code

162
mod_name, mod_fname, mod_loader, pkg_name)

163
File "/usr/lib64/python2.7/r…

any luck

Hi, can you please post the full error traceback? It looks like what you pasted is missing some important messages.

also this could be problematic,

  • name: Add AWX Notifications Test
    collections: [awx.awx]
    vars:
    default_values:
    state: present
    awx.awx.tower_notification:

nothing is filled in after “awx.awx.tower_notification:”

AWX Team

any update on my query please???

Last week we had inquired about getting the full stack trace so we could see where this error was generated from.
If you can provide that we should be able to see where the issue was in the module.

If you can also send the full output from the AWX log (there is a button in the upper right of the job output page to download it) that would be useful. Please mask out any information that is private.

In addition, we had reported that the second task in your playbook appears suspicious as it appears to call awx.awx.tower_notification with no parameters (but it could be just how the formatting came through in the email).

  • The AWX team