{"id":5156,"date":"2023-05-22T23:00:28","date_gmt":"2023-05-23T04:00:28","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5156"},"modified":"2023-05-22T23:00:28","modified_gmt":"2023-05-23T04:00:28","slug":"ansible-error-an-unhandled-exception-occurred-while-templating","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ansible-error-an-unhandled-exception-occurred-while-templating\/","title":{"rendered":"Ansible Error &#8211; An unhandled exception occurred while templating"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">}}'. Error was a &lt;class 'ansible.errors.AnsibleError'&gt;, original message: An unhandled exception occurred while templating '{{ ntfy_visitor_request_limit_exempt_hosts_container_networks_inspect_commands_string | split('###') }}'. Error was a &lt;class 'ansible.errors.AnsibleError'&gt;, original message: template error while templating string: no filter named 'split'. String: {{ ntfy_visitor_request_limit_exempt_hosts_container_networks_inspect_commands_string | split('###') }<\/pre>\n\n\n\n<p>To solve the issue, update Ansible.  If you are already on the &#8220;latest&#8221; version of ansible available to for your distro, uninstall, and then install it again following the directions on Ansible&#8217;s website<\/p>\n\n\n\n<p>For Ubuntu we can simply do that with<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt remove ansible<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt-add-repository ppa:ansible\/ansible<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install ansible<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>}}&#8217;. Error was a &lt;class &#8216;ansible.errors.AnsibleError&#8217;&gt;, original message: An unhandled exception occurred while templating &#8216;{{ ntfy_visitor_request_limit_exempt_hosts_container_networks_inspect_commands_string | split(&#8216;###&#8217;) }}&#8217;. Error was a &lt;class &#8216;ansible.errors.AnsibleError&#8217;&gt;, original message: template error while templating string: no filter named &#8216;split&#8217;. String: {{ ntfy_visitor_request_limit_exempt_hosts_container_networks_inspect_commands_string | split(&#8216;###&#8217;) &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ansible-error-an-unhandled-exception-occurred-while-templating\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5156","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=5156"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5156\/revisions"}],"predecessor-version":[{"id":5167,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5156\/revisions\/5167"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}