{"id":5849,"date":"2024-08-01T15:08:25","date_gmt":"2024-08-01T20:08:25","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5849"},"modified":"2024-08-01T15:16:46","modified_gmt":"2024-08-01T20:16:46","slug":"ansible-not-working-on-rockylinux-8-almalinux-8-rhel-8","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ansible-not-working-on-rockylinux-8-almalinux-8-rhel-8\/","title":{"rendered":"Ansible not working on RockyLinux 8, AlmaLinux 8, RHEL 8"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">[WARNING]: Unhandled error in Python interpreter discovery for host localhost: Expecting value: line 1<br>column 1 (char 0)<\/pre>\n\n\n\n<p><a href=\"https:\/\/github.com\/ansible\/ansible\/issues\/83357\">https:\/\/github.com\/ansible\/ansible\/issues\/83357<\/a><\/p>\n\n\n\n<p>Ansible 2.17 moved to using Python 3.7.  This causes issues with systems that use Python 3.6 (i.e., RHEL 8 based distros).  Unfortunately, you can&#8217;t just upgrade Python either, as 3.6 is used in system tools such as DNF\/YUM.<\/p>\n\n\n\n<p>There are two options.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Upgrade to a RHEL 9 based distribution <\/li>\n\n\n\n<li>Use Ansible 2.16<\/li>\n<\/ol>\n\n\n\n<p>Ansible 2.16 should be the default installed version on RHEL 8 based distros.  <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[WARNING]: Unhandled error in Python interpreter discovery for host localhost: Expecting value: line 1column 1 (char 0) https:\/\/github.com\/ansible\/ansible\/issues\/83357 Ansible 2.17 moved to using Python 3.7. This causes issues with systems that use Python 3.6 (i.e., RHEL 8 based distros). Unfortunately, &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ansible-not-working-on-rockylinux-8-almalinux-8-rhel-8\/\">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,3],"tags":[1694,1695,1655,1193,7,293,538,1696,1648,1697],"class_list":["post-5849","post","type-post","status-publish","format-standard","hentry","category-ansible","category-linux","tag-2-16","tag-2-17","tag-almalinux-8","tag-ansible","tag-linux-2","tag-python","tag-rhel","tag-rhel8","tag-rocky","tag-rocky-linux-8"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5849","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=5849"}],"version-history":[{"count":4,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5849\/revisions"}],"predecessor-version":[{"id":5858,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5849\/revisions\/5858"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}