Why Rebooting Windows/Linux Servers Failing With Error datetime.datetime() is not JSON serializable in Ansible Tower?

Solution Verified - Updated -

Issue

When using reboot module for windows/linux server. It fails with the below error:

[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin
(<ansible.plugins.callback.awx_display.CallbackModule object at
0x7fbd7507b4d0>): datetime.datetime(2020, 7, 8, 0, 0, 56, 208888) is not JSON serializable

Environment

Ansible Tower v3.5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In