[AWX] datetime.datetime (....) is not JSON serializable

21 views
Skip to first unread message

Marcelo Dalla

unread,
Aug 14, 2019, 7:52:12 AM8/14/19
to Ansible Project
Hello.
I´m trying to run an AWX template with reboot command in playbook but it´s not working. 

Playbook:
---------------------------------
---
- name: restart server
  hosts: all
  gather_facts: false
  tasks:
    - name: restart server
      reboot: 
---------------------------

When I run the template I receive the following error:

[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin (<ansible.plugins.callback.awx_display.CallbackModule object at
0x7f1314af9d10>): datetime.datetime(2019, 8, 13, 13, 47, 35, 668160) is not JSON serializable

I think it´s a bug but I´m not sure.
This error happen only when I run it inside the AWX. If I run it using a command line (ansible-playbook) the playbook run without erros.
Any idea?

Thank you very much.

Ansible version: 2.8.2
Awx version: 6.1.0.0



Marcelo

Marcelo Dalla

unread,
Aug 14, 2019, 8:21:54 AM8/14/19
to Ansible Project
Problem solved.
Just include in ansible.cfg the following configuration:

callback_whitelist = junit


======================================
Reply all
Reply to author
Forward
0 new messages