Ansible playbook fails with Unexpected templating type error
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.