Ansible playbook fails with Unexpected templating type error

Solution Verified - Updated -

Issue

  • While running ansible remediation playbook generated from Advisor component on Red Hat Insights, it fails with below error

    TASK [obtain diagnosis info] ***************************************************
    fatal: [client.example.com]: FAILED! => {"msg": "Unexpected templating type error occurred on (insights-client --diagnosis{{ remediation | regex_search('[a-fA-F0-9]{8}[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}') }}): expected string or buffer"}
    

Environment

  • Red Hat Insights

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