{"id":5976,"date":"2025-04-16T15:09:58","date_gmt":"2025-04-16T20:09:58","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5976"},"modified":"2025-04-16T15:09:58","modified_gmt":"2025-04-16T20:09:58","slug":"ansible-playcontext-error-for-routeros-community-collection","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ansible-playcontext-error-for-routeros-community-collection\/","title":{"rendered":"Ansible &#8220;PlayContext&#8221; error for RouterOS Community Collection"},"content":{"rendered":"\n<p>The following error is due to <code>PlayContext<\/code> being removed from <code>ansible-core<\/code>.<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/ansible-collections\/ansible.netcommon\/issues\/541\">https:\/\/github.com\/ansible-collections\/ansible.netcommon\/issues\/541<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code has-dark-gray-background-color has-background\"><code class=\"\">\"msg\": \"'PlayContext' object has no attribute 'verbosity'\"<\/code><\/pre>\n\n\n\n<p>This can be fixed by updating the Ansible Collection.<\/p>\n\n\n\n<p>You can list your current collections with<\/p>\n\n\n\n<pre class=\"wp-block-code has-dark-gray-background-color has-background\"><code class=\"\">ansible-galaxy collection list<\/code><\/pre>\n\n\n\n<p>You may have multiple duplicates for different versions of Python and for local and system paths.  I.e., <code>\/usr\/lib\/python3<\/code> and <code>~\/.local\/lib\/python3<\/code><\/p>\n\n\n\n<p>We can upgrade the collection with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code class=\"\">ansible-galaxy collection install community.routeros --upgrade<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following error is due to PlayContext being removed from ansible-core. https:\/\/github.com\/ansible-collections\/ansible.netcommon\/issues\/541 This can be fixed by updating the Ansible Collection. You can list your current collections with You may have multiple duplicates for different versions of Python and for &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ansible-playcontext-error-for-routeros-community-collection\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1646,452],"tags":[1193,1731,388,363],"class_list":["post-5976","post","type-post","status-publish","format-standard","hentry","category-ansible","category-mikrotik","tag-ansible","tag-ansible-galaxy","tag-routeros","tag-upgrade"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5976","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=5976"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5976\/revisions"}],"predecessor-version":[{"id":5977,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5976\/revisions\/5977"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}