Getting jsondiff is not installed error even though jsondiff is installed

1,218 views
Skip to first unread message

Nick Plichta

unread,
Feb 2, 2022, 12:11:16 PM2/2/22
to Ansible Project

Getting fatal: [192.168.0.51]: FAILED! => {"changed": false, "msg": "jsondiff is not installed, try 'pip install jsondiff'"} error on fresh ansible install on ubuntu 20.04 via apt. Additionally I installed python3-jsondiff and community.docker from ansible-galaxy. All I’m trying to do is destroy a docker stack using ansible-playbook. My yml looks like this


---

- hosts: 192.168.0.51

   tasks:

     - name: Remove healthchecks stack

        docker_stack:

          name: healthchecks

          state: absent


What am I missing?

Stefan Hornburg (Racke)

unread,
Feb 2, 2022, 1:01:34 PM2/2/22
to ansible...@googlegroups.com
On 02/02/2022 18:09, Nick Plichta wrote:
> Getting fatal: [192.168.0.51]: FAILED! => {"changed": false, "msg": "jsondiff is not installed, try 'pip install jsondiff'"} error on fresh ansible install on ubuntu 20.04 via apt. Additionally I installed python3-jsondiff and community.docker from ansible-galaxy. All I’m trying to do is destroy a docker stack using ansible-playbook. My yml looks like this
>
>
Did you install jsondiff on the target host?
Did you tell Ansible to use Python 3 on the target host (ansible_python_interpreter: /usr/bin/python3) ?

Regards
Racke

> ---
>
> - hosts: 192.168.0.51
>
>    tasks:
>
>      - name: Remove healthchecks stack
>
>         docker_stack:
>
>           name: healthchecks
>
>           state: absent
>
>
> What am I missing?
>
> --
> 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 ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/de19e1eb-c049-4195-9154-7d3adfdf5f27n%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/de19e1eb-c049-4195-9154-7d3adfdf5f27n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.

OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages