Problem solved.
Just include in ansible.cfg the following configuration:

callback_whitelist = junit


======================================

On Wednesday, August 14, 2019 at 8:52:12 AM UTC-3, Marcelo Dalla wrote:
>
> 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
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cdf633a9-db66-41ca-9f74-ac8b7aab6b07%40googlegroups.com.

Reply via email to