docker-ansible-lint icon indicating copy to clipboard operation
docker-ansible-lint copied to clipboard

Missing jmespath

Open jessejcollins opened this issue 2 years ago • 1 comments

I have some Ansible that uses json_query, and when I run ansible-lint in a cytopia/ansible-lint container, I get the following error:

WARNING  Listing 2 violation(s) that are fatal
d=856173;https://ansible-lint.readthedocs.io/rules/jinja/1;91mjinja[invalid]: You need to install "jmespath" prior to running json_query filter

Per the message above, this occurs because jmespath is not on the image.

In my GitLab CI/CD pipeline before running ansible-lint, I'm able to install jmespath via pip with the following before_script:

  before_script:
    - /usr/bin/python3 -m pip install jmespath

Since it is needed for some linting, can jmespath be pre-installed in the image?

jessejcollins avatar Feb 02 '23 20:02 jessejcollins

can jmespath be pre-installed in the image?

Sure

cytopia avatar Feb 02 '23 23:02 cytopia