Ansible job fails to run on the host connected Red Hat Capsule.

Solution Verified - Updated -


  • Unable to run Ansible jobs on the host connected with Red Hat Capsule.

  • Ansible job fails with the following error.

    File "/usr/lib/python2.7/site-packages/", line 3011, in <module>
    parse_requirements(__requires__), Environment()
    File "/usr/lib/python2.7/site-packages/", line 626, in resolve
    raise DistributionNotFound(req)
    DistributionNotFound: MarkupSafe>=0.23
    Exit status: 250


  • Red Hat Capsule 6.9

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content